PHP: Magic Methods

I love PHP; I really do. But I have caught saying, “PHP lies” on more than one occasion. (One of my Java counterparts at work loves reminding of any such declaration.)  These statements are usually the result of some sort of odd, inconsistent or just plain poor naming choice in the language.  Magic methods are not an example of this; I find them to be very appropriately named.

Fun fact about me. I used to do magic… card magic to be precise.  Nothing professional, just enough to help me through the social awkwardness of the middle and high school years. I liked cards because they were easy to come by and I didn’t need a stage or an elaborate setup to “dazzle and amaze” those around me.  I was no Copperfield, but to make sure I didn’t make a fool of myself, I had to truly understand Continue reading