note 98907 deleted from function.call-user-method-array by cmb
| From: | cmb@php.net | Date: | Sun, 25 Oct 2020 13:15:54 +0000 |
| Subject: | note 98907 deleted from function.call-user-method-array by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215645@lists.php.net to get a copy of this message | ||
Note Submitter: wloche at hotmail dot com
----
You don't have to write a new function, <?php call_user_func_array(array($obj,
$method_name), $params); ?> works pretty fine! (to my mind, 'eval' fucntion should be
avoided almost all the time)