What the title says. Specifically if I have
$array1[\'name\'] = \'zoo\'; $array2[\'name\'] = \'fox\';
How can I determine that alphabetically <
I often use natsort (Natural Sort), since I usually just want to preserve the array for later use anyway.
natsort
Example:
natsort($unsorted_array); var_dump($usorted_array); // will now be sorted.