initSqe(), 'method' => 'api.info.item.list', 'page' => $curpage, 'pagesize' => $pagesize, 'nick' => $shopname, 'jdp_modified' => $date); $x = request($url,$params); return $x; } $d = "2014-01-01"; request_page('http://crm-api.lrlz.com/api_app/api_main.py',"丽人丽妆官方旗舰店", $d,1,10); $x = mt_rand(); $y = uniqid($x, true); $str = md5(uniqid(mt_rand(), true)); $datas = array('type' => 0,'mobile' => '13911129867','str' => ''); $var = $datas['str']; if(empty($var)) { echo "$var"; } if(isset($var)) { echo "$var"; } $a = new Validate(); //$a->setValidate("344d",true,"","不可以为空"); $a->setValidate(array('input'=>"haizi.king@gmial.com",'validator' => "Email", 'message' =>"请填写正确的EMAIL")); echo $a->validate(); //cookie $cur = cookie('stanley'); echo $cur; $src = 'hello world'; $key = 'cb8d4e597fc751a56dc30258c4db1226'; $enc = encrypt($src,$key); echo $enc; $dec = decrypt($enc,$key); echo $dec; $ip = getIp(); echo $ip; //import(''); $data = array(); array_push($data, "18"); $cur = new DateTime(); $start = $cur->getTimestamp(); echo $start; $ret = wcache('user:stanley',$data,'product'); for($i = 0; $i < 100000; ++$i ) { $val = rcache('user:stanley','product'); } $e = new DateTime(); $end = $e->getTimestamp(); echo $end; var_dump($val);