摘要:
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
夏沫忆香
阅读(245)
评论(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
夏沫忆香
阅读(165)
评论(0)
推荐(0)
浙公网安备 33010602011771号