Em Den
0
Q:

php arrow function

$numbers = [1,2,3];
$modifier = 5;

array_map(fn($x) => $x * $modifier, $numbers);
1

New to Communities?

Join the community