通过Get方式传递数据

mac2022-06-30  96

1:因为get传参数有个特点就是不能超过256字节。如果数据大的话会溢出。 解决办法: $data=json_encode($data_array); 然后在拼接超链接: <a href="aa.php?data=".$data></a> 获取数组 $data=json_decode($_GET['data'],true);//记得加true 如果不加的加话 输出的是一个 Object  对象 循环的时候需要用   $对象->表名

 

转载于:https://www.cnblogs.com/hgj123/p/4040748.html

最新回复(0)