I've used the file () function to turn the contents of a text file into an array with the following format:
123
John
1/1/00
456
Paul
2/2/00
1522
George
3/3/00
10456
Ringo
4/4/00
Each group of three lines contains information about one visitor, i.e: "123, John & 1/1/00" are one group. "1234, Paul & 2/2/00" are another, etc.
Once they are in the php code, I need to sort the numbers as integers while keeping the names & dates with the number. The resulting output would be:
10456 Ringo 4/4/00
1522 George 3/3/00
456 Paul 2/2/00
123 John 1/1/00
Once sorted I'll be calling on the individual variables to place inside an HTML
table:
|| 10456 || Ringo || 4/4/00 ||
|| 1522 || George || 3/3/00 ||
|| 456 || Paul || 2/2/00 ||
|| 123 || John || 1/1/00 ||
I have been trying a ton of combinations to get this effect and absolutely nothing is working for me. The numbers above given won't be the final, they will change periodically. Any help would be appreciated 🙂