Lines Matching refs:array_map
2 Test array_map() function : usage variations - anonymous callback function
5 /* Prototype : array array_map ( callback $callback , array $arr1 [, array $... ] )
11 * Test array_map() by passing anoymous callback function with following variations
14 echo "*** Testing array_map() : anonymous callback function ***\n";
20 var_dump( array_map( create_function('$a, $b', 'return array($a, $b);'), $array1, $array2));
23 var_dump( array_map( create_function('$a, $b', 'return array($a, $b);'), $array1));
26 var_dump( array_map( create_function(NULL, 'return NULL;'), $array1));
29 var_dump( array_map( create_function('$a', NULL), $array1));
32 var_dump( array_map( create_function('$a', 'return array($a);'), NULL));
37 *** Testing array_map() : anonymous callback function ***
118 Warning: array_map(): Argument #2 should be an array in %s on line %d