摘要:
/* 记录浏览历史 */if (!empty($_COOKIE['history'])){ if(stripos($_COOKIE['history'].',',$goods_id.',')===false){ $history = explode(',', $_COOKIE['history']); array_unshift($history, $goods_id); //入栈 while (count($history) > 5) //大于容器容量 { array_... 阅读全文