note 70072 added to function.call-user-method-array
| From: | leonwinter at gmail dot com | Date: | Mon, 02 Oct 2006 11:45:39 +0000 |
| Subject: | note 70072 added to function.call-user-method-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-117936@lists.php.net to get a copy of this message | ||
If you this function will be deleted in future php releases you can use this function:
<?
if(!function_exists("call_user_method_array")) {
function call_user_method_array($name, $obj, $params) {
// get params
$txt = "";
foreach($obj as $nr => $el) {
$txt.='$'.$name."[".$nr."], ";
}
$txt = substr($txt, 0, strlen($txt)-2);
// run it
return eval('return call_user_method($name, $obj, '.$txt.');');
}
}
?>
Hope this helps somebody.
----
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/70072
Del: integrated -- https://master.php.net/note/delete/70072/integrated
Del: useless -- https://master.php.net/note/delete/70072/useless
Del: bad code -- https://master.php.net/note/delete/70072/bad+code
Del: spam -- https://master.php.net/note/delete/70072/spam
Del: non-english -- https://master.php.net/note/delete/70072/non-english
Del: in docs -- https://master.php.net/note/delete/70072/in+docs
Del: other reasons-- https://master.php.net/note/delete/70072
Reject -- https://master.php.net/note/reject/70072
Search -- https://master.php.net/manage/user-notes.php