note 70075 added to function.call-user-method-array
| From: | leonwinter at gmail dot com | Date: | Mon, 02 Oct 2006 11:52:41 +0000 |
| Subject: | note 70075 added to function.call-user-method-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-117939@lists.php.net to get a copy of this message | ||
Sorry, this is the working function:
<?
function _call_user_method_array($name, $obj, $params) {
// get params
$txt = "";
foreach($params as $nr => $el) {
$txt.='$params['.$nr."], ";
}
$txt = substr($txt, 0, strlen($txt)-2);
// run it
return eval('return call_user_method($name, $obj, '.$txt.');');
}
?>
----
Server IP: 217.13.201.10
Probable Submitter: 85.16.147.122
----
Manual Page -- http://www.php.net/manual/en/function.call-user-method-array.php
Edit -- https://master.php.net/note/edit/70075
Del: integrated -- https://master.php.net/note/delete/70075/integrated
Del: useless -- https://master.php.net/note/delete/70075/useless
Del: bad code -- https://master.php.net/note/delete/70075/bad+code
Del: spam -- https://master.php.net/note/delete/70075/spam
Del: non-english -- https://master.php.net/note/delete/70075/non-english
Del: in docs -- https://master.php.net/note/delete/70075/in+docs
Del: other reasons-- https://master.php.net/note/delete/70075
Reject -- https://master.php.net/note/reject/70075
Search -- https://master.php.net/manage/user-notes.php