Simple Object Improvement in PHP5
PHP has many unpleasant features. One of them is a certain inconsistency when handling object properties and object methods. When you try to use a nonexistent method, PHP throws a fatal error and stops the execution. However, access to an undefined property results in a mere notice. There is a primitive way to remedy this, however. We can replace the notice by a nice, juicy fatal error.