note 11908 deleted from function.call-user-method by felipe
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
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');
?>