PHP magic methods
I can’t ever recall the magic methods of PHP and sometimes google doesn’t seem to display them as the first couple of hits, so for my own sake, a cheat-sheet of them with a few notes: __construct(/* arguments */) : called on construction of the object __destruct() : called when the object is destroyed __get($var) [...]
Read the rest of this entry »