Sebastian Nowak
Sebastian Nowak

Reputation: 5717

Parse encoded $_SERVER['request_uri']

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

Answers (1)

John Conde
John Conde

Reputation: 219874

You are looking for urldecode()

Decodes any %## encoding in the given string. Plus symbols ('+') are decoded to a space character.

Upvotes: 5

Related Questions