note 7404 deleted from Variable variables by ronabop
| From: | ronabop@php.net | Date: | Sat, 19 Aug 2000 03:29:16 +0000 |
| Subject: | note 7404 deleted from Variable variables by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2602@lists.php.net to get a copy of this message | ||
Hello
<p>
This is the same post, just readable. (Missed the note about break and paragraph tags.)
<p>
The most important useage of veriable veriables that I have found is not even mentioned here.
<br>
That is, function veriables:
<p>
$funcvar="my_formdatafunc";
<br>
$$funcvar(); // calls the function w/no parameters.
<br>
${$funcvar( $var1, "string", $nutervar)}; // w/parameters
<p>
I've been using this undocumented feature for some time and only just now realized that it is
undocumented.
<br>
It is most usefull with form data processing to handle multiple forms with one script and such.
<br>
Where $funcvar my be the name of a database table used as a function name.
<p>
Terry Mackintosh <terry@terrym.com>