[PHP-DEV] Bug #738 Updated: $GLOBALS dislike array element and class field From: Bug Database (php-dev <email protected>)
Date: 09/25/98

ID: 738
Updated by: zeev
Reported By: mquinson <email protected>
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 <email protected>
For help: php-dev-help <email protected>