The Object Extensions for PHP provides several
classes that add runtime object extension and
callbacks to the language. It allows the
programmer to add methods and properties to an
object at runtime by dynamically extending by
another object. It also allows the creation of
object property lists that allow for dynamic
setting/getting of values in a fashion similar to
JavaScript objects. These object property lists
support basic value checking.