Space Cat, Prince Among Thieves

Posts Tagged “Commentary”

All Glory to __invoke

Lost in the shiny new features (see: namespaces and closures) PHP 5.3 also added the __invoke method. While not plainly apparent, it is secretly an amazingly useful 'magic method' .

If you're not taking advantage of __invoke, you should be. Why? It provides a uniform execution points for objects t…


Read More / Comment »