Re: sorting files in directory
| From: | Nick Wilson | Date: | Wed, 27 Nov 2002 15:40:00 +0000 |
| Subject: | Re: sorting files in directory | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126300@lists.php.net to get a copy of this message | ||
* and then Justin French declared....
> > 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?
>
> There's an optional second parameter for asort() and rsort(), so check it
> out in the manual... it *may* be needed to get what you want.
Great, thanks everyone. Just wondered if it would have problems with
asort() and the dates in the filenames like:
* 02-11-23-whatever.php
* 02-12-03-whatever.php
Cheers...
--
Nick Wilson // www.tioka.com