GLOBAL[as]
| From: | meling | Date: | Thu, 14 Sep 2000 10:03:11 +0000 |
| Subject: | GLOBAL[as] | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-16746@lists.php.net to get a copy of this message | ||
While helping a developer debugging a code today,
we found that having a line like this:
$ans = GLOBALS[as]
will give a parse error (expecting "]"). However, when
the same code is run on PHP 3.0.7 (we have a development
server that has not been upgraded yet - my bad) it worked.
Is as] a reserved word in PHP 4.0.0? Or a bug. When I tested
the same line on PHP 4.0.2, it worked...
-- mel
Meling Mudin < meling at myweb.com.my >
System Administrator, TecnoChannel Technologies.
03-460 9282 ext 222 / 012-663 4327
"God is real unless declared integer."