note 83989 modified in function.usort by danbrown
| From: | danbrown@php.net | Date: | Sun, 23 Jan 2011 16:25:40 +0000 |
| Subject: | note 83989 modified in function.usort by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-176062@lists.php.net to get a copy of this message | ||
Here's how you can usort() a multidimensional array (like in example #2 above) within a class:
<?php usort($myArray, array("className", "cmp")); ?>
--was--
Here's how you can usort() a multidimensional array (like in example #2 above) within a class:
usort($myArray, array("className", "cmp"));
http://php.net/manual/en/function.usort.php