Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我像这样将电子邮件传递到我的 URL:
http://www.mysite.com?email=external%2Bcustomer%40gmail.com
但是当打印$_REQUEST它给我以下输出:
$_REQUEST
external^customer%40gmail.com /* console output */
我想要这样的输出:
external%2Bcustomer%40gmail.com
请帮助我
如果您希望输出与 URL 中传递的完全相同,请尝试以下操作:
print_r(urlencode($_REQUEST['email']));
$_REQUEST是自动解码的,所以需要重新编码。