2018年4月18日
摘要: public function isEmail($str) { $j = "/^[\w|\.]+@\w+\.\w+/i"; if(preg_match($j,$str))return $str; else return false; } public function isTelphone($str) { $j = "/^\d+-?\d+/i"; if(preg... 阅读全文
posted @ 2018-04-18 10:31 夏沫忆香 阅读(208) 评论(0) 推荐(0) 编辑
摘要: public function isMobile(){ $useragent=isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; $useragent_commentsblock=preg_match('|\(.*?\)|',$useragent,$matches)>0?$mat... 阅读全文
posted @ 2018-04-18 10:24 夏沫忆香 阅读(161) 评论(0) 推荐(0) 编辑