note 59293 rejected from function.call-user-func by nlopess
| From: | nlopess@php.net | Date: | Fri, 02 Dec 2005 08:54:14 +0000 |
| Subject: | note 59293 rejected from function.call-user-func by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-99440@lists.php.net to get a copy of this message | ||
Note Submitter: canbetter at sohu dot com
----
<code>
class mycls{
function byref(&$msg){
$msg="test";
}
}
$a=new mycls();
$msg='';
call_user_func(array($a,"byref"),$msg); //will be error
echo $msg;
</code>
how repair the error?