Re: How to access arrays from $GLOBAL?

From: Date: Wed, 13 Mar 2002 16:57:42 +0000
Subject: Re: How to access arrays from $GLOBAL?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-88370@lists.php.net to get a copy of this message
IMO it is not weird. Think about $GLOBALS['mtxt'] as a pointer to array(it is not but this is a good example). $GLOBALS is a hash list. So it has sub elements - zvals (internal _zend_value ). Every from these zvals can hold zvals. In C the syntax is arFooBar[1][2], not arFooBar[[1][2]] I am not nagging(not sure for the word) at you. Best regards, Andrey Hristov ----- Original Message ----- From: "Richard Davey" <rich@fatal-design.com> To: <php-general@lists.php.net> Sent: Wednesday, March 13, 2002 6:52 PM Subject: Re: [PHP] How to access arrays from $GLOBAL? > "Mike Ford" <M.Ford@lmu.ac.uk> wrote in message > > news:7E070107F405BA4790C43526CC4985A10132AA8B@lis-exchange3.lmu.ac.uk... > > $GLOBALS['mtxt'][1] > > Fantastic :) > > That's totally illogical but it works a treat. > PHP has some weird syntax rules sometimes! > > Cheers, > > Rich > -- > Fatal Design > http://www.fatal-design.com > Atari / DarkBASIC / Coding / Since 1995 > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#88370) next »