Last Updated: February 25, 2016
·
575
· ichiriac

How to explain to a PHP developer the Prototype in JavaScript

https://gist.github.com/ichiriac/6364394

This is a PHP class that makes the objects to behave like the Prototype property in JavaScript, was written just for fun*

(* if you plan to create a framework based on this trick in PHP to write cool code like in JavaScript, just don't !)