Re if() booleans
Submitted by Rob... (not verified) on Wed, 27/02/2008 - 19:08.
I tend to use the == true more often than not. The addtiaionl 7 characters make it a little easier to maintain over the long term. This is especially true for if(!$foo) where it's easy to miss then exclamation mark when going over someone else's code that hasn't been touched for a year.
Rob...
»
Recent comments
5 days 2 hours ago
5 days 4 hours ago
5 days 14 hours ago
1 week 3 days ago
1 week 3 days ago
1 week 5 days ago
1 week 5 days ago
2 weeks 1 day ago
2 weeks 2 days ago
2 weeks 2 days ago