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

PHPClasses.org: 26 Ways to Show that PHP Can Be Better Than PHP

SitePoint PHP Blog: More Useful Jenkins Plugins for PHP Projects

Liip Blog: Functional Programming in PHP

Bryan's Blog: 5 (More) Ways to be a Better PHP Developer

Lorna Mitchell: 5 Reasons to Consider Upgrading Your PHP Platform


Community Events

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


laravel5 extension opinion list example release language series php7 introduction interview library laravel podcast community framework security api version voicesoftheelephpant

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