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) );
106 *** Testing each() : basic functionality ***
588 *** Testing each() : possible variations ***
589 -- Testing each() with reset() function --
620 -- Testing each() with resources --
641 -- Testing each with objects --
690 -- Testing each() with null array --
695 Warning: each() expects exactly 1 parameter, 0 given in %s on line %d
698 Warning: each() expects exactly 1 parameter, 2 given in %s on line %d
701 Warning: Variable passed to each() is not an array or object in %s on line %d
704 Warning: Variable passed to each() is not an array or object in %s on line %d
707 Warning: Variable passed to each() is not an array or object in %s on line %d