News Feed
Sections




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

Manuel Pichler's Blog:
Why I love PHP
July 24, 2009 @ 11:06:20

In a (somewhat sadistic) example of why he loves the flexibility that PHP offers Manuel Pichler has posted a code snippet showing just how much PHP can bend.

While working on PHP_Depend's parser I realized one major reason Why I love PHP, it's the flexibility of language. Even if you think you now know all ways to solve a problem, there is always one more way to solve it.

At a high level, the code example does some crazy things with variable variables, magic functions and constants to ultimately output "f:bar()".

0 comments voice your opinion now!
flexibility language example


blog comments powered by Disqus

Similar Posts

Sameer Borate's Blog: Refactoring 2: Extract Method

Padraic Brady's Blog: An Example Zend Framework Blog Application - Part 1: Introductory Planning

Nikita Popov's Blog: Understanding PHP's internal function definitions (Part 2)

Ben Ramsey: Introducing Array_column() in PHP 5.5

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


Community Events





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


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

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