Re: Using usort() in a class
| From: | Bjoern Hoehrmann | Date: | Wed, 28 Jun 2000 18:31:17 +0000 |
| Subject: | Re: Using usort() in a class | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-22662@lists.php.net to get a copy of this message | ||
* Stefan Livieratos <stefan@livieratos.com> wrote:
| > | usort($arr, array($this,"cmp"));
|
| It does work with latest CVS. Which version are you using?
As i've told in the original posting: PHP 4.0.0 Win32 Binary Release.
This is new in PHP 4.0.1 Release Candidate (2000-06-25).
[...]
- Allow all functions that receive user-defined function callbacks to accept
an array that contains an object and a method name, in place of a function
name, e.g. usort($array, array($obj, "ObjSort")) (Zeev, Zend Engine)
[...] (Q: NEWS file, snapshot of the day)
Thanks & regards,
Björn Höhrmann
--
http://www.bjoernsworld.de/