url传递数组

当我们要向服务器传递数组时,我们可以通过
http://127.0.0.1/index.php?a[]=hello&a[]=world
来传递,这样,在后端,
$a = $_GET['a'];
就可以接收到 $a[0]=“hello”, $a[1]=“world”。
posted @ 2022-07-19 11:25  heartbeat111  阅读(1376)  评论(0)    收藏  举报