i want to sort an array by alphabet
when i use asort() its sorting , but the results that i get is first of all , the names in upper-case, and after that all the names with lower-case
like :
Avi
Beni
..
..
avi
beni
if i want like :
Avi
avi
Beni
beni
..
..
how can i do it ?
The proposed solutions, until now, arent correct, natcasesort and the usort($arr, 'strcasecmp') solutions are failing with some starting array configurations.
Let do some tests, to find a solution.
?>