Try it on your own.. $ary = array('key' => 'val'); $ary['key']; //prints val $ary{'key'}; //prints val
Square brackets are more common but both are valid array syntax. There may be special cases where curly braces are used in place of square brackets.. this I don't know. Kevin ----- Original Message ----- From: "Alex Shi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 06, 2002 1:28 PM Subject: [PHP] Re: stupid question > I checked the code again...it is $Globals{'lala'}... > > > <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I never saw that is it really working? it is supposed to be > $_GLOBAL['lala'] > > too.. but.. > > > > -- > > > > Nicos - CHAILLAN Nicolas > > [EMAIL PROTECTED] > > www.WorldAKT.com - Hébergement de sites Internet > > > > "Alex Shi" <[EMAIL PROTECTED]> a écrit dans le message de news: > > [EMAIL PROTECTED] > > > I have almost two years of experience in PHP. so don't think qualified > for > > > being a newbie...However still found something don't know when reading > > > other's code :( > > > > > > Here is what I want to know: $Global{'hello'}. What this means? Is it a > > > Variable-variable? > > > > > > Alex > > > > > > -- > > > --------------------------- > > > TrafficBuilder Network: > > > http://www.bestadv.net/index.cfm?ref=7029 > > > > > > > > > > -- > 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