note 49491 deleted from language.pseudo-types by tularis
| From: | tularis@php.net | Date: | Sun, 30 Jan 2005 10:09:39 +0000 |
| Subject: | note 49491 deleted from language.pseudo-types by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-84206@lists.php.net to get a copy of this message | ||
Note Submitter: jmarbas at hotmail dot com
Reason: bad code
----
Note that for the 'Type 3:' example code both:
call_user_func(array(&$obj, 'myCallbackMethod'));
AND
call_user_func(array($obj, 'myCallbackMethod'));
work. I dont know why the example code is passing a reference/address by passing &$obj when the
explanation in the text describes it passing only $obj(the actual instantiated object itself)