February 2013
Intermediate to advanced
538 pages
20h 55m
English
array_map
array array_map(mixedcallback, arrayarray1[, ... arrayarrayN])
Creates an array by applying the callback function referenced in
the first parameter to the remaining parameters (provided arrays); the
callback function should take as parameters a number of values equal
to the number of arrays passed into array_map(). For example:
functionmultiply($inOne,$inTwo){return$inOne*$inTwo;}$first=(1,2,3,4);$second=(10,9,8,7);$array=array_map("multiply",$first,$second);// contains (10, 18, 24, 28)
Read now
Unlock full access