色尼玛亚洲综合影院,亚洲3atv精品一区二区三区,麻豆freexxxx性91精品,欧美在线91

php 檢查電子郵件函數(shù)(自寫)

復(fù)制代碼 代碼如下:
function is_valid_email_address($email){
$qtext = '[^//x0d//x22//x5c//x80-//xff]';
$dtext = '[^//x0d//x5b-//x5d//x80-//xff]';
$atom = '[^//x00-//x20//x22//x28//x29//x2c//x2e//x3a-//x3c'.
'//x3e//x40//x5b-//x5d//x7f-//xff]+';
$quoted_pair = '//x5c[//x00-//x7f]';
$domain_literal = "http://x5b($dtext|$quoted_pair)*//x5d";
$quoted_string = "http://x22($qtext|$quoted_pair)*//x22";
$domain_ref = $atom;
$sub_domain = "($domain_ref|$domain_literal)";
$word = "($atom|$quoted_string)";
$domain = "$sub_domain(//x2e$sub_domain)*";
$local_part = "$word(//x2e$word)*";
$addr_spec = "$local_part//x40$domain";
return preg_match("!^$addr_spec$!", $email) ? 1 : 0;
}

php技術(shù)php 檢查電子郵件函數(shù)(自寫),轉(zhuǎn)載需保留來源!

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請第一時(shí)間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 湖州市| 台东市| 泰州市| 兴和县| 卓尼县| 顺昌县| 沅江市| 三台县| 东阿县| 博乐市| 刚察县| 平乐县| 闽清县| 满城县| 乐至县| 新河县| 宁国市| 个旧市| 桦南县| 民权县| 江安县| 元谋县| 吴旗县| 北川| 松潘县| 南华县| 洪湖市| 石景山区| 依安县| 夏河县| 邹城市| 新兴县| 鄄城县| 南川市| 清远市| 定西市| 梧州市| 资源县| 比如县| 乐山市| 精河县|