note 7401 deleted from language.variables.variable by philip

From: Date: Wed, 16 Mar 2005 01:21:37 +0000
Subject: note 7401 deleted from language.variables.variable by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-86519@lists.php.net to get a copy of this message
Note Submitter: terry at terrym dot com ---- Hello (I guess pre tags are broken, but will use them anyway incase they get fixed.) The most important useage of veriable veriable that I have found is not even mentioned here. That is, function veriables: $funcvar="my_formdatafunc"; $$funcvar(); // calls the function w/no parameters. ${$funcvar( $var1, "string", $nutervar)}; // w/parameters I've been using this undocumented feature for some time and only just now realized that it is undocumented. It is most usefull with form data processing to handle multiple forms with one script and such. Where $funcvar my be the name of a database table used as a function name. Terry Mackintosh <terry@terrym.com>

« previous php.notes (#86519) next »