note 12047 modified in function.usort by danbrown
| From: | danbrown@php.net | Date: | Sun, 23 Jan 2011 16:33:30 +0000 |
| Subject: | note 12047 modified in function.usort by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-176090@lists.php.net to get a copy of this message | ||
when using usort to refer to a function inside a class i have succesfully used:
<?php usort($myarray,array($this,"cmp")); ?>
--was--
when using usort to refer to a function inside a class i have succesfully used:
usort($myarray,array($this,"cmp"));
http://php.net/manual/en/function.usort.php