- array_map: documentation ( source)
- var_dump: documentation ( source)
- get_defined_functions: documentation ( source)
- sort: documentation ( source)
<?php
$ends = array_map(function($x)
{
return [$x=>$x[strlen($x)-1]];
}, get_defined_functions()['internal']);
sort($ends);
var_dump($ends);