How to decode the url in php where url is encoded with encodeURIComponent()

Tags: , , ,



How to decode the url in php where url is encoded with encodeURIComponent()?

I have tried the urldecode() but then also..i don’t the url which i have encoded…

I have to do this in php..

Answer

You should use rawurldecode().
See the Manual



Source: stackoverflow