Jump to content

Sorting Array Contents By Last Modified


ccdan

Recommended Posts

I have a script which reads a specified directory's jpgs. It then simply sorts them and prints them. I've searched high and low with no great answer that works but I wanted to add onto this by having the date modified included in the array when it's made so I can sort them by that and then print them like that.

 

Not sure if the that reads and assigns the dates needs to write the results in another array that will be the one to be printed or what!?!?!

 

Thanks! Dan

Link to comment
https://forums.phpfreaks.com/topic/172516-sorting-array-contents-by-last-modified/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.