Quantcast
Channel: UltraMega Tech. » magic methods
Browsing latest articles
Browse All 2 View Live

Deciphering Magic Methods in PHP

Deciphering Magic Methods in PHP | Nettuts+ PHP provides a number of ‘magic’ methods that allow you to do some pretty neat tricks in object oriented programming. These methods, identified by a two...

View Article



Create Callbacks Using __invoke

The __invoke magic method (available as of PHP 5.3) is used to make an object callable as if it were a regular function. The combines the usefulness of objects with the simplicity of functions. One...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images