Re: sorting files in directory
| From: | Marek Kilimajer | Date: | Wed, 27 Nov 2002 13:54:21 +0000 |
| Subject: | Re: sorting files in directory | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126275@lists.php.net to get a copy of this message | ||
Yes, you do. Add each dir to an array, sort the array, then loop through it printing the dirs out.
Nick Wilson wrote:
Hi all, I have several directories filled with files written like this: * 02-09-19-filename.etc * 02-10-02-anotherfile.whatever How does php order these files if read from the directory and printed to the screen? -- I need them in date order, do I need to sort them somehow? Many thanks...