how can I javascript decodeURI in PHP?

Michael  picture Michael · Aug 22, 2011 · Viewed 16.4k times · Source

I have a javascript which sends some specific information to a PHP api . Before to send it performs encodeURI . How can I "decode" it in PHP ? I understand that urldecode/urlencode is different that javascript encode/decodeURI so what can I use ?

Answer

321X picture 321X · Aug 22, 2011