note 40536 deleted from function.call-user-method by betz
| From: | betz@php.net | Date: | Fri, 25 Mar 2005 11:58:49 +0000 |
| Subject: | note 40536 deleted from function.call-user-method by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-86955@lists.php.net to get a copy of this message | ||
Note Submitter: aurelien dot labrosseNOSPAM at free dot fr
----
note that if the called method returns null, call_user_method fails.
<?php
class toto{
function titi(){
...
$return = null;
...
return $return;
}
}
...
$tutu = new toto();
if(!@$return = call_user_method('titi', 'toto')){
echo "failed";
}else{
echo $return;
}
?>
outputs "failed".