> I am doing a dir list of an ftp and using sort to sort the dir list
> alphabetically. What I am using now sorts it alphabetically but it sorts
> the capital letters then the lower case so a capital "Z" would come before
a
> lower case "a"
>
> The Code I am using is:
>
> sort($complete_list);
> return $complete_list;
>
> Does someone know how I can sort an array alphabetically with the case
> insensitive sort?
usort($complete_list, 'strcasecmp');
http://php.net/manual/en/function.usort.php
http://php.net/manual/en/function.strcasecmp.php
--
WARNING [EMAIL PROTECTED] address is not working -- Use [EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]