Last Updated: February 25, 2016
·
1.16K
· 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 !)

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

PHP applications still send a browser full of JavaScript. Hardening the server does not inventory the payment, analytics, and plugin scripts that run after the HTML is delivered.

Security insights from Cside