News Feed
Sections




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

Joshua Thijssen:
Internal PHP function usage revisited
August 06, 2014 @ 11:53:34

Joshua Thjissen has revisited some of his PHP internal function statistics, an update from this previous post with some results showing the most (and least) used internal PHP functions in several large projects from GitHub.

A lot of people are asking about functions like isset, empty, print, echo etc, as they are not present in the current result list. The thing is, is that these are not really functions, but language constructs. This means that PHP treats them a bit different than normal functions, and this results sometimes in seemingly "strange" behaviour when trying to use them like regular functions.

He's updated his results, though, to reflect the usage of these "functions" and shared the numbers. Not surprisingly, these constructs show up pretty highly in the new "top 22" list he's produced. With the inclusion of the constructs, the number one item on the list is now "isset" by a very large margin. The full results can be found in this gist.

0 comments voice your opinion now!
internal function usage statistics github revisit construct language

Link: https://www.adayinthelifeof.nl/2014/08/05/internal-php-function-usage-revisited/

blog comments powered by Disqus

Similar Posts

Mashable.com: 10 Programming Languages You Should Learn in 2014

PHPMaster.com: Defining and Using Functions in PHP

Richard Davey's Blog: Interesting memory use with GD images

Nexen.net: PHP statistics for December 2006

W3Techs.com: Highlights of web technology surveys, Nov. 2010: 3/4 of all websites are based on PHP


Community Events





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


install language deployment community list library voicesoftheelephpant symfony interview tips opinion laravel api framework package introduction bugfix series podcast release

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