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 !)
Written by Ioan CHIRIAC
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#