Well, I would, except I'm rather unhappy with it; adding anything to the Object prototype can cause later enumeration problems that I'd rather not impress on people.
Meanwhile, if you understood what it's for, no example should be needed, other than:
var X = { this:'is', a:['test','testing'],one:2,three:4.5 } console.log(X.toPHP());
Meanwhile, if you understood what it's for, no example should be needed, other than:
var X = { this:'is', a:['test','testing'],one:2,three:4.5 }
console.log(X.toPHP());
Output:
a:4:{s:1:"s";s:2:"is";s:1:"a";a:2:{i:0;s:4:"test";i:1;s:7:"testing";}s:3:"one";i:2;s:5:"three";d:4.5;}
Visit us at http://www.stutimandal.com
Regards,
Kumar S
GuyFromChennai.com