<?php $a = [1, 2, 3]; $c = static fn(int $x) => $x*2; $result = array_map(callback: $c, arr1: $a); var_dump($result);
You have javascript disabled. You will not be able to edit any code.