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 ?
Use encodeURIComponent
in Javascript: http://www.w3schools.com/jsref/jsref_encodeuricomponent.asp and urldecode
in PHP: http://php.net/manual/en/function.urldecode.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With