Re: sort by date

From: Date: Wed, 20 Dec 2000 15:49:07 +0000
Subject: Re: sort by date
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-31215@lists.php.net to get a copy of this message
Charles Matner wrote: > > Is there a function in PHP that will sort an array containing dates? If so, > what format does the date have to be in (i.e. mm/dd/yy)? > One possibility is to use usort(), uksort() or uasort(). You need just define your own comparison function using mktime(). http://www.php.net/manual/function.usort.php http://www.php.net/manual/function.uksort.php http://www.php.net/manual/function.uasort.php -- Pavel a.k.a. Papi

« previous php.general (#31215) next »