Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php arrow function

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

array_map(fn($x) => $x * $modifier, $numbers);
Source by stitcher.io #
 
PREVIOUS NEXT
Tagged: #php #arrow #function
ADD COMMENT
Topic
Name
4+7 =