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

Erskine Labs Blog: What should they know of PHP who only PHP know?

Ulf Wendel: Not only SQL injection: I donít trust you!

Community News: The "Go PHP5" Effort Officially Launched

PHP.net: PHP 5.4.21 Released

Anthony Ferrara: An Opinion On The Future Of PHP


Community Events





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


series list interview threedevsandamaybe tips release developer podcast framework introduction laravel code community api zendserver conference deployment development application language

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