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) );
133 *** Testing end() on different arrays ***
182 *** Testing end() with sub-arrays ***
193 *** Testing end() when array elements are deleted ***
207 *** Testing end() on objects ***
219 *** Testing end() on resource type ***
225 Warning: end() expects exactly 1 parameter, 0 given in %s on line %d
228 Warning: end() expects exactly 1 parameter, 2 given in %s on line %d
231 Warning: end() expects parameter 1 to be array, int given in %s on line %d
234 Warning: end() expects parameter 1 to be array, string given in %s on line %d