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.