[UPHPU] sorting multi-dimensional array
Jon Gale
donjuanica at gmail.com
Thu Sep 20 10:45:27 MDT 2007
On 9/20/07, Scott Hill <llihttocs at gmail.com> wrote:
>
>
> To sort duplicate date values, make the following changes to datesort:
>
> function datesort($a,$b)
> {
> $retVal = strcmp($a['date'],$b['date']);
> if ($retVal == 0)
> $retVal = strcmp($a['name'],$b['name']);
> return $retVal;
> }
>
Nice catch Scott...thanks.
Jon
--
What's this? Another BLOG? http://www.jtoo.net/
More information about the UPHPU
mailing list