> I wonder why they added the "fn()" thing on the left of the array functions.
There would be ambiguity without it: https://wiki.php.net/rfc/arrow_functions_v2#syntax
There would be ambiguity without it: https://wiki.php.net/rfc/arrow_functions_v2#syntax
$a=[$x ~> $x*2, $x ~> $x*$x];
$a[1](5); // 25
Looks cool to me.Also PHP tries to be "googlable". Typing "fn PHP" into Google should bring relevant hits, for people never seen such a construct.
If not insisting on the "google" part, there always is http://symbolhound.com/?q=php+%7E%3E