Javascript Object to a PHP Object

Veröffentlicht am: 15 Januar 2010
auf dem Kanal: optikalefx
27,184
95

I show you a function I made that lets you use your javascript object as a php object. Basically it takes your JS object and turns into a JSON string that PHP decodes. The key to making this work is stripping strings once you json_decode, because it addes slashes when it goes through post.

The other key, is to take into account indexed arrays, that way if a property of a JS object is an array, it will still be an array when it gets to PHP.


Auf dieser Seite können Sie das Online-Video Javascript Object to a PHP Object mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer optikalefx 15 Januar 2010 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 27,184 Mal angesehen und es wurde von 95 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!