Lines Matching refs:end
2 Test end() function
11 /* Prototype: mixed end ( array &$array );
33 echo "*** Testing end() on different arrays ***\n";
37 var_dump( end($sub_array) );
43 /* checking for end() on sub-arrays */
44 echo "\n*** Testing end() with sub-arrays ***\n";
46 var_dump( end($test_array) );
47 var_dump( end($test_array[1]) );
49 /* checking working of end() when array elements are deleted */
50 echo "\n*** Testing end() when array elements are deleted ***\n";
56 var_dump( end($array_test) );
58 // remove last element from array, rewind and check end()
61 var_dump( end($array_test) );
63 var_dump( end($array_test) );
65 // remove any element !first, !last, rewind and check end()
68 var_dump( end($array_test) );
70 var_dump( end($array_test) );
73 echo "\n*** Testing end() on objects ***\n";
93 var_dump( end($array_object) );
97 echo "\n*** Testing end() on resource type ***\n";
106 var_dump( end($resources) );
111 var_dump( end() );
112 var_dump( end($array[0], $array[0]) );
117 var_dump( end($var) );
118 var_dump( end($var1) );
122 var_dump( end($null_array) );
132 *** Testing end() on different arrays ***
181 *** Testing end() with sub-arrays ***
192 *** Testing end() when array elements are deleted ***
206 *** Testing end() on objects ***
218 *** Testing end() on resource type ***
224 Warning: end() expects exactly 1 parameter, 0 given in %s on line %d
227 Warning: end() expects exactly 1 parameter, 2 given in %s on line %d
230 Warning: end() expects parameter 1 to be array, integer given in %s on line %d
233 Warning: end() expects parameter 1 to be array, string given in %s on line %d