note 11908 deleted from function.call-user-method by felipe
| From: | felipe@php.net | Date: | Sat, 29 Dec 2007 20:32:26 +0000 |
| Subject: | note 11908 deleted from function.call-user-method by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134200@lists.php.net to get a copy of this message | ||
Note Submitter: jonathanMAPS_ON at NO_SPAMsharpmedia dot net
----
You can also dynamically call functions through variable variables...for example:
<?php
class xyz{
function mybar($str)
{
echo $str;
}
}
$xyz = new xyz;
$foo = 'bar';
$xyz->{'my'.$foo}('dynamic call to function');
?>