For a full usable example, you may want to see an implementation of class
Complex, which is a part of a work-in-progress PHP extension I’m
currently working on.
complex.hh: contains handler
functions for class Complex.
complex.cc: contains the
implementation of class Complex.
operators.cc: contains the
implementation of operator overloading.