Re: Bug #738 Updated: $GLOBALS dislike array element and class f
| From: | Martin Quinson | Date: | Sat, 26 Sep 1998 04:16:50 +0000 |
| Subject: | Re: Bug #738 Updated: $GLOBALS dislike array element and class f | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-1515@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
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@lists.php.net
For help: php-dev-help@lists.php.net