note 18523 rejected from function.call-user-func by didou
| From: | didou@php.net | Date: | Thu, 29 May 2003 22:45:40 +0000 |
| Subject: | note 18523 rejected from function.call-user-func by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-49364@lists.php.net to get a copy of this message | ||
Note Submitter: justmanj@msu.edu.remove-m3
----
too bad you cant pass an object by 'reference', e.g.:
function z1(&$obj)
{
echo "crap";
}
function z2($obj)
{
echo "crap";
}
call_user_func("z1",$obj); //wont work..
call_user_func("z2",$obj); //works right..