Re: Global variables

From: Date: Thu, 19 Apr 2001 01:28:54 +0000
Subject: Re: Global variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49297@lists.php.net to get a copy of this message
> At 1:16 AM +0000 4/19/01, Philip Olson wrote: > > <pre> > > <?php var_dump($GLOBALS) ?> > > </pre> > > don't do that, at least I think it will recursively traverse the > $GLOBALS arrary (since $GLOBALS itself is $GLOBAL) and you will never > end. This is true with print_r($GLOBALS) up until 4.0.4 where it was fixed, which is why I used var_dump in the example although print_r is much prettier :-) regards, Philip

« previous php.general (#49297) next »