Lines Matching refs:end
2 Test end() function
29 echo "*** Testing end() on different arrays ***\n";
33 var_dump( end($sub_array) );
39 /* checking for end() on sub-arrays */
40 echo "\n*** Testing end() with sub-arrays ***\n";
42 var_dump( end($test_array) );
43 var_dump( end($test_array[1]) );
45 /* checking working of end() when array elements are deleted */
46 echo "\n*** Testing end() when array elements are deleted ***\n";
52 var_dump( end($array_test) );
54 // remove last element from array, rewind and check end()
57 var_dump( end($array_test) );
59 var_dump( end($array_test) );
61 // remove any element !first, !last, rewind and check end()
64 var_dump( end($array_test) );
66 var_dump( end($array_test) );
69 echo "\n*** Testing end() on objects ***\n";
89 var_dump( end($array_object) );
93 echo "\n*** Testing end() on resource type ***\n";
102 var_dump( end($resources) );
109 *** Testing end() on different arrays ***
158 *** Testing end() with sub-arrays ***
169 *** Testing end() when array elements are deleted ***
183 *** Testing end() on objects ***
195 *** Testing end() on resource type ***