Nitz Nitz - 2 months ago 17
Javascript Question

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

Hey Guys,
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