时间:2021-07-01 10:21:17 帮助过:23人阅读
$data = unserialize($_SESSION['data']);通过遍历就可以获得key和value的值,
1. while(list($key,$value)=each($data)){
2.
3. echo"$key : $value
";}
http://www.bkjia.com/PHPjc/478557.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/478557.htmlTechArticle在本地页面将数组序列化,$_SESSION[data] = serialize($commoditycount)在另一个页面通过数组非序列化获得, $data = unserialize($_SESSION[data]);通过遍历就...