Bug #738 Updated: $GLOBALS dislike array element and class field
| From: | Bug Database | Date: | Fri, 25 Sep 1998 23:52:29 +0000 |
| Subject: | Bug #738 Updated: $GLOBALS dislike array element and class field | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-1514@lists.php.net to get a copy of this message | ||
ID: 738
Updated by: zeev
Reported By: mquinson@zeppelin-cb.de
Status: Closed
Bug Type: Feature/Change Request
Assigned To:
Comments:
You only have the syntax wrong.
To access $foo[0] in the global scope, you need to access
$GLOBALS["foo"][0].
To access $foo->bar in the global scope, you need to access
$GLOBALS["foo"]->bar.
Zeev
Full Bug description available at: http://ca.php.net/bugs.php3?id=738
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net