I have an array laid out like this:
Code:
Filelist {
Filename { "Test.jpg", "Image.jpg" }
Date { "2009 08 18 00 36 36", "2009 08 25 23 10 04" }
Ext { "jpg", "jpg" }
}
There are 10 different arrays inside the array "Filelist" which each are a different type of data. I need to sort the Date array, but arrange all other arrays afterwards, so that "Test.jpg" was created on "2009 08 18 00 36 36" even after the Date array was sorted.
I've looked through many pages on the PHP manual, searched the forum, searched google. Tried many things, but I am giving up after a few hours. I guess nobody stores data like I do. I should use objects, but it's too late now. Does anyone have any ideas? My brain can't comprehend what should be done...
To make it easier for someone to help me with this, I made a script with the very basics of my array format. It has the code you can copy/paste on the bottom, and the results on top.
http://www.radgh.com/public/
Last edited by RadGH; 08-27-2009 at 11:19 AM..
|