note 93583 deleted from language.variables.variable by danbrown
| From: | danbrown@php.net | Date: | Thu, 17 Sep 2009 14:50:55 +0000 |
| Subject: | note 93583 deleted from language.variables.variable by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-160786@lists.php.net to get a copy of this message | ||
Note Submitter: gitaarik at gmail dot com
----
A way to DO get values from superglobal arrays with variable variables is:
<?php
$_GET['test'] = 'succes!';
$superglobal = "GET";
echo ${'_' . $superglobal}['test'];
?>