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

2002-09-22 Thread Peter J. Schoenster



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] $_GLOBAL["var"] or $_GLOBAL['var'] or $_GLOBAL[var]; ???

2002-09-22 Thread Victor

$_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?
 
- Victor > www.argilent.com


__ 
Post your ad for free now! http://personals.yahoo.ca

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php