How to deal with the problem that php obtains address bar parameters that contain []?
wangxiao
wangxiao 2018-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?

wangxiao
wangxiao

reply all(5)
wangxiao

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template