How to deal with the problem that php obtains address bar parameters that contain []?
wangxiao2018-05-10 10:48:44
0
5
1324
The address in phpcms contains info[***], For example, an address is: test.php?info[title]=888&c=search Pass $tt=$ _GET["info[title]"]; echo $tt; Cannot get 888, what should I do?
Solved. Got it twice. Asked in csdn
I wrote it using yii2.0. I think you should write it as $_GET['info']['title']
You can pass an array and get the value in the array
You can also get the complete URL and then use regular values to get the value. Direct GET is probably not possible
I’ve never written it like this before. If you can’t get it, just change the parameter name