[PHP-DEV] Re: Bug #738 Updated: $GLOBALS dislike array element and class f From: Martin Quinson (mquinson <email protected>)
Date: 09/26/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
I know it, but I wanted to make a general function...
It's ok, I'll ereg the paramter of that function to get it work.

Thanks for your time, Mt.

--
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>