Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php array_map

PHP function array_map(?callable $callback, array $array, array ...$arrays) array
-----------------------------------------------------------------------------  
Applies the callback to the elements of the given arrays.
  
Parameters:
callable|null--$callback--Callback function to run for each element in each array.
array--$array--An array to run through the callback function.
array--...$arrays--[optional]
  
Returns: an array containing all the elements of arr1 after applying the callback function to each one.
Source by php.net #
 
PREVIOUS NEXT
Tagged: #php
ADD COMMENT
Topic
Name
8+3 =