Jochem Maas wrote:
admin wrote:
Jochem Maas wrote:

...

the 'callback' type has a number of forms:

'myFunc'
array('className', 'myMeth')
array(self, 'myMeth')
array(parent, 'myMeth')
array($object, 'myMeth')

self and parent adhere to the same 'context' rules when used in
call_user_func*()
as when you use them directly - whether $this is present within the
scope of the
called method is essentially down to whether the method being called
is defined as
static or not. AFAIK call_user_func*() respects PPP modifiers and
works transparently
with regard to access to the relevant object variable ($this)

This undocumented (?) feature is fairly nice.

it is documented - where do you think I find out about it?


I knew it could be, and it is described at the top: http://www.php.net/manual/en/language.oop5.basic.php
Thanks.

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

Reply via email to