Mailinglisten-Archive |
Moin, Moin Aus den User Comments des Php Manuals auf php.net: >22-Aug-2000 07:37 > >About roads_(at)_free.fr comments concerning the function for usort: You >can access a class member by using \ class reference. >i.e.: usort($array, "\$this->function") > >hope this will help. >06-Apr-2001 03:37 >RE comparator functions within classes: >On PHP4.04, I found that the comparator was completely ignored >within the >class even when using the usort($myArray, >"\$this->sortFunction"); method above. The usort( $myArray, >array($this,"sortFunction")) worked. Haven't tested on PHP3. Jens -- -\*SPDJ*/-
php::bar PHP Wiki - Listenarchive