note 18458 deleted from language.variables.variable by philip
| From: | philip@php.net | Date: | Wed, 16 Mar 2005 01:19:08 +0000 |
| Subject: | note 18458 deleted from language.variables.variable by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-86516@lists.php.net to get a copy of this message | ||
Note Submitter: mlong at mlong dot org
----
Based on the comments here I was trying to do:
<p>$retarray=${$funcvar($var1,$var2)};
<p>That executed the function named in $funcvar and passed the arguments but I never got any
return value.
<p>What will work is this:
<p>$retarray=$funcvar($var1,$var2);
<p>This is because of the variable function feature which means if you add () to a variable
name it will treat the value of the variable as the function name.