Deep Into PHP Classes

Deep Into PHP Classes

PHP classes incur a huge memory footprint vs a global function. What do we gain for that overhead? A glance at the PHP source code reveals the “magic methods” built into every class. Beyond ‘construct’ and ‘toString’ are a full suite of useful methods, and the built in special interfaces that compliment them. Learn to make your classes do more with less code, as well as leverage other language constructs like traits and generators.

973e0861866767b3940a6dbb5aac3642?s=128

Matt Land

May 15, 2015
Tweet