hi, i am a php novice.. i need to read in data from file to array and then i need sort it..
the file I need to read in is in TXT file and its contents look like this
Joe 9 110
Sam 10 211
Mark 11 123
.
.
so I open filepointer and read it in with file(FileName) function into an array.
and then i need to sort the array by name and then sort the array by the second values(9, 10, 11 in this case)..
i can do sort by name with just sort(Array) but then I have no clue how to sort it by other values.. so I guess my question is how to sort thing by Array[1] elements, not Array[0] elements??
Any help?