PHP 常用函数

/验证邮箱
function check_emailformat($email) {
    return strlen($email) > 6 && preg_match("/^[\w\-\.]+@[\w\-\.]+(\.\w+)+$/", $email);
}
 
select * from joy_forum_forum as f where f.type='sub' and f.group_type=3 and sex_type = 2 and f.tag REGEXP '[\w\s,]?(29|30|14)[\w\s,]?'

你可能感兴趣的:(常用函数)