note 30019 added to language.variables.external
| From: | php-general at lists dot php dot net | Date: | Tue, 04 Mar 2003 13:21:15 +0000 |
| Subject: | note 30019 added to language.variables.external | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44824@lists.php.net to get a copy of this message | ||
"...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.
--
http://www.php.net/manual/en/language.variables.external.php
http://master.php.net/manage/user-notes.php?action=edit+30019
http://master.php.net/manage/user-notes.php?action=delete+30019
http://master.php.net/manage/user-notes.php?action=reject+30019