摘要:
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... 阅读全文
摘要:
public function isMobile(){ $useragent=isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; $useragent_commentsblock=preg_match('|\(.*?\)|',$useragent,$matches)>0?$mat... 阅读全文