Bug #691 Updated: $GLOBALS does not work with array elements
| From: | Bug Database | Date: | Tue, 25 Aug 1998 02:28:03 +0000 |
| Subject: | Bug #691 Updated: $GLOBALS does not work with array elements | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-561@lists.php.net to get a copy of this message | ||
ID: 691
Updated by: rasmus
Reported By: charly@openware.com.ar
Status: Closed
Bug Type: Other
Assigned To:
Comments:
No bug here. To get $ab[1] from the GLOBALS array you have to use $GLOBALS["ab"][1] and
in your second case if $var="ab" then you can do a global $$var and then echo ${$var}[1]
This doesn't solve your problem, but it explains how it works.
Full Bug description available at: http://ca.php.net/bugs.php3?id=691
--
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