标签:图片 lse 返回 span img cti 获取 gif src
//设置SESSION public function setSession(){ //Session::set(‘name‘,‘张三‘); //dump(session(‘age‘,‘28‘)); //设置数组 $data=array( ‘name‘=>‘张三‘, ‘age‘=>26, ‘sex‘=>‘男‘ ); dump(session(‘data‘,$data)); } //获取SESSION public function getSession(){ //dump(Session::get(‘name‘)); //dump(session(‘age‘)); dump(session(‘data‘)); } //判断SESSION public function pSession(){ dump(Session::has(‘name‘)); //返回true dump(\session(‘?name1‘)); //返回false } //删除SESSION public function delSession(){ //dump(Session::delete(‘data‘)); dump(session(‘data‘,null)); //清空SESSION Session::clear(); //助手函数 session(null); }
标签:图片 lse 返回 span img cti 获取 gif src
原文地址:https://www.cnblogs.com/lichao666888/p/9044702.html