【发布时间】:2019-10-21 15:11:11
【问题描述】:
我有这样的网址
?custom[weight]=1&custom[weight2]=2
如果我使用 echo $_GET[custom[weight]] 那么它不起作用。我如何检索这个值?
【问题讨论】:
-
您可以像
$_GET['custom']['weight']一样访问它,这将返回1或$_GET['custom']['weight2']将返回2
标签: php url parameters get request