Re: how to use array_map() with a class callback function?

From: Date: Wed, 13 Aug 2003 07:40:14 +0000
Subject: Re: how to use array_map() with a class callback function?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-159405@lists.php.net to get a copy of this message
Peter James wrote: > array_map(array('Maker', 'sGetNameId'), array("1") ) > > Have a look at the callback type, here: > http://www.php.net/manual/en/language.pseudo-types.php Thanks! That did it. Now if only PHP could treat class functions first-class citizens instead of having making us jump through hoops ;) Jc

« previous php.general (#159405) next »