[wp-hackers] Coding style

Viper007Bond lists at viper007bond.com
Tue Jul 4 01:51:01 GMT 2006


RE: spaces around crap

Hmm, I've always coded as the PHP manual dictates, probably because 
that's how I learned PHP.

if ($foo == 'bar') {

But I do omit { and } when possible.

And the "'bar' == $foo" is a good idea. I don't know how many times I've 
accidentally put one = in there and confused the hell outta myself 
trying to figure out what went wrong. lol

-Viper


More information about the wp-hackers mailing list