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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 13, 2002 6:52 PM Subject: Re: [PHP] How to access arrays from $GLOBAL? > "Mike Ford" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > $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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php