[UPHPU] sorting multi-dimensional array

Wade Preston Shearer lists at wadeshearer.com
Thu Sep 20 09:57:12 MDT 2007


I have an array, like this:

$events[] = array('name' => 'value', 'date' => '2007-09-01');
$events[] = array('name' => 'value', 'date' => '2007-09-02');


I want to sort $events on $events[]['date];

How would I do that?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20070920/8a7cce95/smime.bin


More information about the UPHPU mailing list