Invokes the function for each value in the array. Creates a new array containing the values returned by the function.
Example:
$array = array('k1', 'k2', 'k3');
$result = Arrays::map($array, function ($value) {
return 'new_' . $value;
});
Result:
Array
(
[0] => new_k1
[1] => new_k2
[2] => new_k3
)