Re: How to access arrays from $GLOBAL?

From: Date: Wed, 13 Mar 2002 17:12:04 +0000
Subject: Re: How to access arrays from $GLOBAL?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-88374@lists.php.net to get a copy of this message
"Rasmus Lerdorf" <rasmus@lerdorf.ca> wrote in message news:Pine.LNX.4.44.0203130851580.12337-100000@christine.ca... > I don't understand why you think it is illogical. How else would you > dereference a multi-dimensional array? Because in my mind (which I know is totally wrong in this instance, I'm just explaining for your benefit) using: $GLOBALS['mtxt'][1]; is like saying "give me element 1 of the globals array" when I was thinking "but I want element 1 of the mtxt array" which is why I tried the various combinations of mtxt[1] _inside_ of the globals[]. Hope that explains a little. Cheers, Richard -- Fatal Design http://www.fatal-design.com Atari / DarkBASIC / Coding / Since 1995

« previous php.general (#88374) next »