正则判断/匹配手机号码格式
if(!preg_match("/^1\d{10}$/",$data['tel'])){
    echo "格式不正确!";exit;
}