相关疑难解决方法(0)

如何从URL字符串中获取参数?

我有一个HTML表单字段$_POST["url"],其中包含一些URL字符串作为值.示例值为:

https://example.com/test/1234?email=xyz@test.com
https://example.com/test/1234?basic=2&email=xyz2@test.com
https://example.com/test/1234?email=xyz3@test.com
https://example.com/test/1234?email=xyz4@test.com&testin=123
https://example.com/test/the-page-here/1234?someurl=key&email=xyz5@test.com

等等

如何email从这些URL /值中仅获取参数?

请注意,我没有从浏览器地址栏中获取这些字符串.

php url-parsing

180
推荐指数
6
解决办法
49万
查看次数

标签 统计

php ×1

url-parsing ×1