And you can also use the new syntax:
$inc = fn ($number) => $number + 1;
$x = [1, 2, 3, 4];
array_map($inc, $x);$inc = fn ($number) => $number + 1;
$x = [1, 2, 3, 4];
array_map($inc, $x);No comments yet.