// PHP - fonction anonyme $add = function($a, $b) { return $a + $b; }; // PHP 7.4+ - arrow function (expression unique) $add = fn($a, $b) => $a + $b;