Polymorphic Methods in PHP5

Since PHP does not allow function/method overloading, it has become practice to define functions/methods following a scheme of function <funcname><typename>(). So I thought to myself, maybe there is a way to use that naming scheme, PHP’s variable function names together with some inflection and create the polymorpic dispatch myself.

Read more of this post

Advertisements