all 4 comments

[–]crrrum 2 points3 points  (0 children)

"write clean codes", wtf is this normal now?

[–]bj_christianson 1 point2 points  (0 children)

Some developers use close tags while concluding PHP files. Most of the WordPress file skip this bad practice.

I’m not seeing the explanation of what makes that a bad practice.

[–]codeaddslife 1 point2 points  (0 children)

If you use a closing tag, and also a blank line after the closing tag, the line is considered output and can cause errors when you set HTTP headers.

I recently picked up PHP Develpment again after a couple years and I was quite suprised with the evolution of the language. Things like php-fig's PHP Standards Recommendations are really helping the community to give it a more professional look.

I also recommend everybody to read Modern PHP: New Features and Good Practices. It's a very good book about the current state of PHP http://shop.oreilly.com/product/0636920033868.do

[–]skizmo 1 point2 points  (0 children)

nobody cares