在本地页面将数组序列化,$_SESSION['data'] = serialize($commoditycount)在另一个页面通过数组非序列化获得,
$data = unserialize($_SESSION['data']);通过遍历就可以获得key和value的值,
1. while(list($key,$value)=each($data)){
2.
3. echo"$key : $value
";}
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn