In PHP, how might one sort an array by the last characters of its values? Take, for example, the following array:
$string[0] = "They";
$string[1] = "started";
$string[2] = "plotting";
$string[3] = "against";
$string[4] = "him";
After the sort, the array would look like this (note the order based on the last characters of each value... also note the rewritten indexes):
$string[0] = "started";
$string[1] = "plotting";
$string[2] = "him";
$string[3] = "against";
$string[4] = "they";