$a=[$x ~> $x*2, $x ~> $x*$x]; $a[1](5); // 25
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
[0] https://wiki.php.net/rfc/arrow_functions_v2#x_x_y1
Also PHP tries to be "googlable". Typing "fn PHP" into Google should bring relevant hits, for people never seen such a construct.