@@ -50,7 +50,7 @@ foreach ($scalar_variables as $scalar_var) {
5050
5151 // destroy the variable using unset
5252 unset( $ scalar_var );
53- // dump and see if its destroyed, expcted : NULL
53+ // dump and see if its destroyed, expected : NULL
5454 var_dump ( $ scalar_var );
5555
5656 // check using isset to see if unset, expected: bool(false)
@@ -165,11 +165,11 @@ foreach ($resources as $resource) {
165165 // unset the resource
166166 unset($ resource );
167167 // check using isset() and empty()
168- var_dump ( isset ($ resource ) ); // expected: bool(flase )
168+ var_dump ( isset ($ resource ) ); // expected: bool(false )
169169 var_dump ( empty ($ resource ) ); // expected: bool(true)
170170 // call isset() with two args, but one set
171171 var_dump ( isset ($ resource , $ temp_var ) ); // expected: bool(false)
172- // uset the temp_var
172+ // unset the temp_var
173173 unset($ temp_var );
174174 // now the isset() with both the args as unset
175175 var_dump ( isset ($ resource , $ temp_var ) ); // expected: bool(false);
@@ -211,7 +211,7 @@ var_dump($point1); // dump the object
211211// check the object and member that is not set
212212var_dump ( isset ($ point1 ) ); // expected: bool(true)
213213var_dump ( empty ($ point1 ) ); // expected: bool(false)
214- var_dump ( isset ($ point1 ->$ lable ) ); //expected: bool(flase )
214+ var_dump ( isset ($ point1 ->$ lable ) ); //expected: bool(false )
215215var_dump ( empty ($ point1 ->$ lable ) ); //expected: bool(true)
216216
217217//set the member variable lable and check
@@ -291,7 +291,7 @@ function test_unset1() {
291291 $ static_var = 20 ;
292292 echo "value of static_var after new assignment: $ static_var \n" ;
293293}
294- // call the functiont
294+ // call the function
295295test_unset1 ();
296296test_unset1 ();
297297test_unset1 ();
0 commit comments