Lines Matching refs:current
2 Test current() function : usage variations - Pass different data types as $array_arg arg
5 /* Prototype : mixed current(array $array_arg)
12 * Pass different data types as $array_arg argument to current() to test behaviour
15 echo "*** Testing current() : usage variations ***\n";
86 // loop through each element of $inputs to check the behavior of current()
90 var_dump( current($input) );
98 *** Testing current() : usage variations ***
102 Warning: current() expects parameter 1 to be array, int given in %s on line %d
107 Warning: current() expects parameter 1 to be array, int given in %s on line %d
112 Warning: current() expects parameter 1 to be array, int given in %s on line %d
117 Warning: current() expects parameter 1 to be array, int given in %s on line %d
122 Warning: current() expects parameter 1 to be array, float given in %s on line %d
127 Warning: current() expects parameter 1 to be array, float given in %s on line %d
132 Warning: current() expects parameter 1 to be array, float given in %s on line %d
137 Warning: current() expects parameter 1 to be array, float given in %s on line %d
142 Warning: current() expects parameter 1 to be array, float given in %s on line %d
147 Warning: current() expects parameter 1 to be array, null given in %s on line %d
152 Warning: current() expects parameter 1 to be array, null given in %s on line %d
157 Warning: current() expects parameter 1 to be array, bool given in %s on line %d
162 Warning: current() expects parameter 1 to be array, bool given in %s on line %d
167 Warning: current() expects parameter 1 to be array, bool given in %s on line %d
172 Warning: current() expects parameter 1 to be array, bool given in %s on line %d
177 Warning: current() expects parameter 1 to be array, string given in %s on line %d
182 Warning: current() expects parameter 1 to be array, string given in %s on line %d
187 Warning: current() expects parameter 1 to be array, string given in %s on line %d
192 Warning: current() expects parameter 1 to be array, string given in %s on line %d
197 Warning: current() expects parameter 1 to be array, string given in %s on line %d
205 Warning: current() expects parameter 1 to be array, null given in %s on line %d
210 Warning: current() expects parameter 1 to be array, null given in %s on line %d
215 Warning: current() expects parameter 1 to be array, resource given in %s on line %d