Posted by Andy Jeffries on 05/10/06 13:10
On Wed, 10 May 2006 11:51:54 +0200, Henrik Hansen wrote:
>> I'm remaking my old FFA (Free For All) script and I've got just about
>> everything done except for the reverse entries for the textfile.
>>
>> I need to have all the entried ordered from newest to oldest.
>
> use file() and array_reverse() ?
Or if your file is large (because file will obviously load the whole file
in to an array), use exec or something similar to use the
Linux command line utility "rev".
Cheers,
Andy
--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos
[Back to original message]
|