[wp-hackers] PHP Coding Practices
Mark Jaquith
mark.wordpress at txfx.net
Wed Feb 15 00:53:11 GMT 2006
On Feb 14, 2006, at 7:46 PM, Andy Skelton wrote:
> Worthwhile to use strpos !== false in all new and updated code (I
> recently started doing that, too) but I wouldn't sweat the old stuff
> unless you're really bored.
I am, from time to time (bored, that is). I've submitted patches
that purely fix spaces => tabs and fix indentation issues. :-)
>> Issue #2
>> foreach ( (array) $things as $thing ) {
>
> That's awesome except you can also foreach an object. Be careful
> about that.
You can only foreach() objects in PHP5. I don't see WordPress
dropping PHP4 support anytime soon, so I think we're safe there.
--
Mark Jaquith
http://txfx.net/
More information about the wp-hackers
mailing list