Reputation: 5717
Quick question, $_SERVER['request_uri']
doesn't contain decoded url but the original one. If I access http://localhost/asd/%20/
it contains asd/%20/
. What's the function name to parse it to asd/ /
?
Upvotes: 2
Views: 1253
Reputation: 219874
You are looking for urldecode()
Decodes any %## encoding in the given string. Plus symbols ('+') are decoded to a space character.
Upvotes: 5