I have a file with about 700 lines, I need to sort each of these lines in alphabetical order.. so I figured it would be easy with PHP
Right now i'm using this code:
<?
$array=file("/home/reboot/list.txt");
sort($array);
for ($counter=0; $counter<=count($array); $counter++)
{
print($array[$counter]);
print("<BR><BR>");
}
print("done");
?>
But the problem with that is it will sort capital and non-capital words differently.. Is there a way I could make php ignore the fact that a word is capital or not?
Bookmarks