Re: Globals
| From: | Chris Boget | Date: | Fri, 01 Aug 2003 19:17:38 +0000 |
| Subject: | Re: Globals | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157991@lists.php.net to get a copy of this message | ||
> I'm curious if someone could explain to me why this is occuring:
>
> function blah() {
> //global $GLOBALS;
> echo 'Globals: <pre>'; print_r( $GLOBALS ); echo '</pre>';
>
> }
>
> As it is shown above, with the 'global $GLOBALS' line commented
> out, the print_r() works and shows all the currently defined variables
> and their corresponding values. However, if I declare $GLOBALS
> as global, nothing gets printed out.
>
> Why?
The above is all I really need to know. The rest of my previous email
was the result of a massive brainfart.
Sorry about that...
Chris