english, lang1, lang2
rat, rat_lang1, rat_lang2
ball, ball_lang1, ball_lang2
air, air_lang1, air_lang2
If I have this text file I read in php, how can I sort it starting the second line, the first line being the heading of the file. So that the file will print out like..
english....
air....
ball...
rat....
I read the file using fopen
, put it in $content
using fread
, used explode
with new line. I can see the array of lines but cannot figure out how to sort it. Any suggestions would be appreciated.