note 75756 deleted from function.call-user-func by cmb
| From: | cmb@php.net | Date: | Sun, 08 Dec 2019 11:15:30 +0000 |
| Subject: | note 75756 deleted from function.call-user-func by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213451@lists.php.net to get a copy of this message | ||
Note Submitter: Mr.KTO
----
To send an object to your function by link, using call_user_func it's not enough (in php4) to
define func(&$obj) { ... }
You need: call_user_func("callback", &$myobj)
(in php5 objects are sending by link as default)