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,]?'
posted @ 2012-03-16 08:34  前望  阅读(138)  评论(0编辑  收藏  举报