PHP notes

Notes on doing different things within the PHP language.

Object oriented introspection

  • property_exists(obj,prop_name)
  • method_exists(obj,method_name)
  • is_a(obj,'clas_name') or ($obj instanceof ClassName)

Dynamic coding

varargs