note 11908 deleted from function.call-user-method by felipe

[email protected]
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');
?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.