Lines Matching refs:each
2 Test each() function
8 echo "*** Testing each() : basic functionality ***\n";
25 /* loop through to check working of each() on different arrays */
27 while( list( $key, $sub_array) = each($arrays) ) {
33 var_dump( each($sub_array) );
37 pointer of the array. check this and ensure that each returns
40 var_dump( each($sub_array) );
45 echo "\n*** Testing each() : possible variations ***\n";
46 echo "-- Testing each() with reset() function --\n";
47 /* reset the $arrays and use each to get the first element */
49 var_dump( each($arrays) ); // first element
50 list($key, $sub_array) = each($arrays); // now second element
51 var_dump( each($sub_array) );
54 echo "-- Testing each() with resources --\n";
64 var_dump( each($resources) );
67 echo "-- Testing each with objects --\n";
76 var_dump( each($each_obj) );
79 echo "-- Testing each() with null array --\n";
81 var_dump( each($null_array) );
87 var_dump( each() ); // args = 0
88 var_dump( each($null_array, $null_array) ); // args > expected
94 var_dump( each($var) );
95 var_dump( each($str) );
96 var_dump( each($fl) );
105 *** Testing each() : basic functionality ***
107 Deprecated: The each() function is deprecated. This message will be suppressed on further calls in …
589 *** Testing each() : possible variations ***
590 -- Testing each() with reset() function --
621 -- Testing each() with resources --
642 -- Testing each with objects --
691 -- Testing each() with null array --
696 Warning: each() expects exactly 1 parameter, 0 given in %s on line %d
699 Warning: each() expects exactly 1 parameter, 2 given in %s on line %d
702 Warning: Variable passed to each() is not an array or object in %s on line %d
705 Warning: Variable passed to each() is not an array or object in %s on line %d
708 Warning: Variable passed to each() is not an array or object in %s on line %d