But does it have to be =>? How about ~>?
$a=[$x ~> $x*2, $x ~> $x*$x];
$a[1](5); // 25
Looks cool to me. $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