News Feed
Sections




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

Toptal Blog:
10 Most Common PHP Mistakes
July 17, 2014 @ 12:52:40

On the Toptal blog Ilya Sanosyan has a post sharing what he sees as the top ten most common mistakes PHP developers make on a day to day basis. While most of the tips are code-specific there are one or two that are a bit more abstract.

PHP makes it relatively easy to build a web-based system, which is much of the reason for its popularity. But its ease of use notwithstanding, PHP has evolved into quite a sophisticated language, with many nuances and subtleties that can bite developers, leading to hours of hair-pulling debugging. This article highlights ten of the more common mistakes that PHP developers need to beware of.

Among the items on his list are things like:

  • Leaving dangling array references after foreach loops
  • Confusion about returning by reference vs. by value
  • Memory usage headfakes and inefficiencies
  • Assuming $_POST will always contain your POST data
  • Thinking that PHP supports a character data type

Each of the items comes with a good description, some code and suggestions on how to avoid and/or fix it in your applications.

0 comments voice your opinion now!
common language mistakes top10 list

Link: http://www.toptal.com/php/10-most-common-mistakes-php-programmers-make

blog comments powered by Disqus

Similar Posts

Cocoliso's Blog: Adding A Syntax Highlighter To Your Site: The Power Of Geshi

SitePoint PHP Blog: 8 Must Have PHP Quality Assurance Tools

Bastien Labelle's Blog: Why PHP is So Much Better than Ruby

Site News: Conference Talks Page Launched

Reddit.com: Worst practices


Community Events

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


application podcast introduction opinion performance extension library series install php7 composer symfony2 example laravel api release version framework interview community

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