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

Nitz picture Nitz · May 3, 2010 · Viewed 30.8k times · Source

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

mike picture mike · May 3, 2010

You should use rawurldecode().
See the Manual