Javascript Object to a PHP Object

Publicado em: 15 Janeiro 2010
no canal de: 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.


Nesta página do site você pode assistir ao vídeo on-line Javascript Object to a PHP Object duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário optikalefx 15 Janeiro 2010, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 27,184 vezes e gostou 95 espectadores. Boa visualização!