For the past month, I’ve been immersed in PHP 5.3 as I and my team have started work on Zend Framework 2.0. PHP 5.3 offers a slew of new language features, many of which were developed to assist framework and library developers. Most of the time, these features are straight-forward, and you can simply use them; in other cases, however, we’ve run into behaviors that were unexpected. This post will detail several of these, so you either don’t run into the same issues — or can capitalize on some of our discoveries.
It’s about discoveries and pitfalls of the php 6.0 pre-release known as 5.3 or php 6 minus UTF8: Closures, Anonymous Functions, Lambdas, Invokables and Namespaces. Well written with example code, just a nice read.