note 24877 added to language.variables.predefined
| From: | chen at hivemail dot com | Date: | Fri, 30 Aug 2002 21:15:44 +0000 |
| Subject: | note 24877 added to language.variables.predefined | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-36065@lists.php.net to get a copy of this message | ||
In response to jim.dam@cogeco.ca:
> However if your variable_name includes a space or starts with a number, you
> cannot access it (as far as I know), except with using the $GLOBALS array.
You can actually:
$GLOBALS[' foo'] = 'bar';
echo ${' foo'};
Apparently "A valid variable name starts with a letter or underscore, followed by any number of
letters, numbers, or underscores." doesn't apply to this method.
--
http://www.php.net/manual/en/language.variables.predefined.php
http://master.php.net/manage/user-notes.php?action=edit+24877
http://master.php.net/manage/user-notes.php?action=delete+24877
http://master.php.net/manage/user-notes.php?action=reject+24877