PHP会自动在$ _POST上执行urldecode()吗?

Eth*_*len 7 php post urldecode

http://php.net/manual/en/function.urldecode.php,PHP确实urldecode()$_GET$_REQUEST(包含$_POST).

但直接调用$_POST已解码?

Bar*_*mar 15

是的,您通过$_GET$_POST解码的所有参数.

urldecode()文档未提及的原因$_POST是因为POST数据可能不是首先进行URL编码.这取决于POST数据是以application/x-www-form-urlencoded格式还是multipart/form-data格式提交.

但这一切对应用程序都是透明的.

但是文档$_GET确实明确提到了这一点.

注意:
GET变量通过urldecode().