简单问一下,$_SERVER['request_uri']
不包含解码后的网址,而是原始网址。如果我访问 http://localhost/asd/%20/
它包含 asd/%20/
。将其解析为 asd//
的函数名称是什么?
最佳答案
您正在寻找urldecode()
Decodes any %## encoding in the given string. Plus symbols ('+') are decoded to a space character.
关于php - 解析编码 $_SERVER ['request_uri' ],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20019475/