PHP sorting csv array output
| From: | Anna Vester | Date: | Thu, 10 May 2007 19:18:46 +0000 |
| Subject: | PHP sorting csv array output | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-254753@lists.php.net to get a copy of this message | ||
Hello all,
I have a question concerning .CSV array sorting. I have tried googling
for an answer and have tried different techniques, but nothing seems
to works as I would like it to work. Here is my situation:
Test file is located here: http://veanndesign.com/test.php
I would like to be able to sort the output by the Time Zone (or any
other fields). Here is how my code looks like:
http://veanndesign.com/test.html
I believe that I need to get all the data from the .csv file dumped
into 1 array, and I guess I am struggling at that point. I have tried
using foreach inside of the while loop, but it doesn't seem to work.
So what is the best and/or right way to sort this type of data?
Hopefully, this email makes sense.
Thanks in advance.
--
Anna Vester
Web Designer
http://www.veanndesign.com