Lines Matching refs:array_map
2 Test array_map() function : error conditions
5 echo "*** Testing array_map() : error conditions ***\n";
7 // Testing array_map with one less than the expected number of arguments
8 echo "\n-- Testing array_map() function with one less than expected no. of arguments --\n";
13 var_dump( array_map('callback1') );
18 echo "\n-- Testing array_map() function with less no. of arrays than callback function arguments --…
24 var_dump( array_map('callback2', $arr1) );
29 echo "\n-- Testing array_map() function with more no. of arrays than callback function arguments --…
32 var_dump( array_map('callback2', $arr1, $arr2, $arr3) );
37 *** Testing array_map() : error conditions ***
39 -- Testing array_map() function with one less than expected no. of arguments --
40 Exception: array_map() expects at least 2 arguments, 1 given
42 -- Testing array_map() function with less no. of arrays than callback function arguments --
45 -- Testing array_map() function with more no. of arrays than callback function arguments --