[thelist] Sorting 2D array in PHP

Juha Suni juha.suni at ilmiantajat.fi
Fri Mar 18 07:35:53 CST 2005


Brooking, John wrote:
> Barring that, if I were in Perl, I would just call the Perl sort
> function and pass my own comparison function pointer. Does PHP have
> such a mechanism? I haven't found it, if it does.  

Yes it does, usort(). See:
http://www.php.net/usort

HTH

-- 
Suni


More information about the thelist mailing list