<?php //you can only use single expression in arrow functions fn (arguments) => expression; ex. $eq = fn ($x, $y) => $x == $y; echo $eq(100, '100');