How to compare 2 strings alphabetically in PHP?

Viewed 51762

What the title says. Specifically if I have

$array1['name'] = 'zoo';
$array2['name'] = 'fox';

How can I determine that alphabetically $array2's name should come above $array1's?

5 Answers
Related