Re: array walk and class member functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jason Barnett wrote:

indeed that page does not make it very clear,
it's the generic call_back syntax, which can be used practically everywhere a callback function is expected, the array you pass can be in the form of:


array($object, 'methodname')

or

array('classname', 'methodname')

the second version allows you to use static class methods.


I never knew about this syntax until I saw it on this newsgroup quite a few months back. Perhaps an update to the manual is in order? (Whistling and walking away...)


perhaps not: http://www.php.net/manual/en/language.pseudo-types.php#language.types.callback

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux