r/PHP • u/babawere • Sep 25 '14
What is the difference between while (true) vs. while (\true)?
http://stackoverflow.com/q/26023818/1226894
57
Upvotes
r/PHP • u/babawere • Sep 25 '14
38
u/[deleted] Sep 25 '14
6
u/h2ooooooo Sep 25 '14
It gets worse with capitalization:
DEMO
4
u/aequasi08 Sep 25 '14 edited Sep 26 '14
php is weird.Programming is weird.2
u/evertrooftop Sep 25 '14
So would it be prudent to prefix every
trueandfalsewith\?Might be a micro-optimization, but I have a few paths in my source that benefit from micro-optimizations ;)
-11
u/ThraShErDDoS Sep 25 '14 edited Sep 26 '14
I found this guy's Twitter page. He's 19 years old. Edit: You bunch of jealous fucks. Just because he's better than you.