Listen

$numbers = array(1, 2, 3, 4, 5); $double_numbers = array_map(function($n) { return $n * 2; }, $numbers); print_r($double_numbers);

Listen

$numbers = array(1, 2, 3, 4, 5); $double_numbers = array_map(function($n) { return $n * 2; }, $numbers); print_r($double_numbers);