Hello,
The following is a code excerpt I found on the web. Could someone please tell me where I can find information about how to use $$ variables and ${$var} variables. I have never seen them before.

foreach ($expected as $formvar)
$$formvar = (isset(${"_$_SERVER[REQUEST_METHOD]"}[$formvar]))?
   ${"_$_SERVER[REQUEST_METHOD]"}[$formvar]:NULL;

http://nl2.php.net/language.variables.variable
I don't prefer using this because its too difficult to keep track of what is in $var. If something goes wrong in the script, for example, $var is empty, then that will cause a total failure.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.