php 超链接里的参数如何传递数组

2014-11-23 23:35:27 · 作者: · 浏览: 7

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