...that is my question.
Some people recommend using quotes with arrays like so.. $var["bob"] ..other people recommened using the quoteless method.. $var[bob] ..both have valid reasons why, and why not, their method is the best one.
So, do you quote or don't you quote?
What problems have you encountered with quoting or without quoting?
To "quote" or not to quote...
Moderator: General Moderators
To "quote" or not to quote...
Last edited by Gen-ik on Thu Nov 06, 2003 6:15 pm, edited 1 time in total.
I've noticed that everytime I forget to quote something I get a warning about assuming it's literal text. I'm assuming you disabled warnings... 
Anyways, I always quote the literal text and single quote anything that I don't want mangled in any way. Sometimes I use things like Micro$oft or $un in the string and I get Micro or nothing at all...
So that's wy I single quote it sometimes...
That's my $0.02 worth... Probably only worth a penny though...
Gary Smith
Anyways, I always quote the literal text and single quote anything that I don't want mangled in any way. Sometimes I use things like Micro$oft or $un in the string and I get Micro or nothing at all...
That's my $0.02 worth... Probably only worth a penny though...
Gary Smith
- Sevengraff
- Forum Contributor
- Posts: 232
- Joined: Thu Apr 25, 2002 9:34 pm
- Location: California USA
- Contact:
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
http://www.php.net/manual/en/language.t ... rray.donts
obey the manual.
obedience brings victory
Jem'Hadar motto
obey the manual.
obedience brings victory
Jem'Hadar motto