News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Smashing Magazine:
10 Advanced PHP Tips Revisited
March 24, 2009 @ 13:01:37

Smashing Magazine has posted a new article from Chris Shiflett and Sean Coates with their rebuttal to the site's previous 10 Advanced Tips article.

In November 2008 we published the article 10 Advanced PHP Tips To Improve Your Programming. Apparently, according to negative comments to the post, it contained some errors and some statements that are just wrong. [...] To solve the problem, we asked Chris Shiflett and Sean Coates, two PHP gurus, to take a closer look at the article, explain its errors and make it perfectly clear what is actually right and wrong in the theory and practice. This article is a professional response to our article published a couple of months ago.

Here's the more accurate descriptions of those tips - what's good and what's bad - as presented by Chris and Sean:

  • Use an SQL Injection Cheat Sheet
  • Know the Difference Between Comparison Operators
  • Shortcut the else
  • Drop Those Brackets
  • Favor str_replace() Over ereg_replace() and preg_replace()
  • Use Ternary Operators
  • Memcached
  • Use a Framework
  • Use the Suppression Operator Correctly
  • Use isset() Instead of strlen()
1 comment voice your opinion now!
advanced tips revisit helpful article


blog comments powered by Disqus

Similar Posts

Chris Shiflett\'s Blog: Storing Sessions in a Database

Pierre-Alain Joye's Blog: ext/filter, API frozen (!) and fixes, 0.11.0 is out

Matthew Weir O'Phinney's Blog: Zend_Form Advanced Features

Federico Cargnelutti: API Development Tips

Richard Smaizys' Blog: Improve your code style with simple tips


Community Events





Don't see your event here?
Let us know!


introduction opinion security language release update framework voicesoftheelephpant package version podcast laravel composer tool library symfony series community install interview

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework