note 79982 deleted from language.variables.external by danbrown
| From: | danbrown@php.net | Date: | Wed, 09 Mar 2011 14:35:34 +0000 |
| Subject: | note 79982 deleted from language.variables.external by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-177695@lists.php.net to get a copy of this message | ||
Note Submitter: pepesantillan at gmail dot com
----
[someone] on 04-Mar-2003 07:21 wrote:
"...the dot (period, full stop) is not a valid character in a PHP variable name."
That's not completely correct, consider this example:
$GLOBALS['foo.bar'] = 'baz';
echo ${'foo.bar'};
This will output baz as expected.
_____________________________________________
Its a really old post but I just wanted to point out...
thats a key he is talking about - 'foo.bar' - not a variable, and a key can be a string or
a number.