You are here: Re: [PHP] array walk and class member functions « PHP « IT news, forums, messages
Re: [PHP] array walk and class member functions

Posted by Jason Barnett on 10/02/00 11:05

>
> 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...)

--
Teach a person to fish...

Ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html
PHP Manual: http://www.php.net/manual/en/index.php
php-general archives: http://marc.theaimsgroup.com/?l=php-general&w=2

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация