PHP - Array Functions
What is the output of the following PHP code?
$numbers = [1, 2, 3]; $result = array_map(fn($n) => $n * 2, $numbers); print_r($result);
$numbers = [1, 2, 3]; $result = array_map(fn($n) => $n * 2, $numbers); print_r($result);
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions