答:先将数组转化成字符串,然后在目标脚本中再将字符串转换成数组,使用explode函数
//将数组转换成字符串,数组元素之间通过逗号连接
$arg=implode(',',$names);
echo $url="localhost/m/index.php names=".$arg;
>
答:先将数组转化成字符串,然后在目标脚本中再将字符串转换成数组,使用explode函数
//将数组转换成字符串,数组元素之间通过逗号连接
$arg=implode(',',$names);
echo $url="localhost/m/index.php names=".$arg;
>