Re: $_GLOBAL["var"] or $_GLOBAL['var'] or $_GLOBAL[var]; ???

From: Date: Sun, 22 Sep 2002 17:33:37 +0000
Subject: Re: $_GLOBAL["var"] or $_GLOBAL['var'] or $_GLOBAL[var]; ???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-117185@lists.php.net to get a copy of this message
On 22 Sep 2002 at 12:10, Victor wrote: > $_GLOBAL["var"] or $_GLOBAL['var'] or $_GLOBAL[var] - I noticed that in > a mysql statement you can only use: $_GLOBAL[var]. > > I would like to get the advice of more experienced php programmers out > there about this. Which one of the above it the "most best" way to > write? Yeah, this through me as well. Using Perl I got completely out of using quotes when not essential, still don't like em. But the php.net site's got the answer: http://www.php.net/manual/en/language.types.string.php someone put a link to another good explanation: http://www.zend.com/zend/tut/using-strings.php And of course take care of the magic (imho, black magic) that can go on with auto escaping, quoting etc. that I should fathom but haven't. the php.net site is wealth of info, good search, I find 98% of my answers there. Peter

« previous php.general (#117185) next »