摘要: function form() { if(IS_POST) { $name=$_POST['keyword']; if(isset($_COOKIE['search'])){ $search=unserialize(base64_decode($_COOKIE['search'])); } else 阅读全文
posted @ 2017-09-22 09:41 王琨小菜鸟 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 1. serialize和unserialize函数 这两个是序列化和反序列化PHP中数据的常用函数。 <?php $a = array('a' => 'Apple' ,'b' => 'banana' , 'c' => 'Coconut'); //序列化数组 $s = serialize($a); 阅读全文
posted @ 2017-09-22 09:15 王琨小菜鸟 阅读(1275) 评论(2) 推荐(0) 编辑