Schmalls » Blog » 2006 » November 2006

November 2006

Prototype-based programming in PHP

For those who have been doing a lot of Javascript programming, you know what prototype-based programming is all about. The basic idea is that functions can be added to classes dynamically. In Javascript functions can be added to a static class (using prototype) and it will be added to all instances of the class, or they can be added to a specific instance and only be added to that instance.

Anyway, lets get to the point. I decided to try adding this functionality to PHP. I'm not sure why its a good idea, or if it even is, but I'll let you be the judge of that.

→ Read more...

2006-11-06 21:33 · Josh Thompson · 7 Comments · 0 Linkbacks
blog/2006/11/home.txt · Last modified: 2009-09-19 22:50 by Josh Thompson