note 37232 added to keyword.paamayim-nekudotayim
| From: | brooke at jump dot net | Date: | Fri, 07 Nov 2003 08:27:24 +0000 |
| Subject: | note 37232 added to keyword.paamayim-nekudotayim | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-60049@lists.php.net to get a copy of this message | ||
Someone mentioned that eval was better than call_user_func because the latter would not result in
updates to the objects. I'm not sure this is the right place for such a debate, but if it is,
then the right way is:
call_user_func(array(&this, $method), $arg1, $arg2);
You put a reference to (instead of a copy of) this in the array which you pass on.
----
Manual Page -- http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37232
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37232&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37232&report=yes
Search -- http://master.php.net/manage/user-notes.php