tft每日頭條

 > 生活

 > php輸出驗證碼怎麼弄

php輸出驗證碼怎麼弄

生活 更新时间:2024-12-02 10:15:59

function checkEmail($email) { // Create the syntactical validation regular expression $regexp = "^([_a-z0-9-] )(\.[_a-z0-9-] )*@([a-z0-9-] )(\.[a-z0-9-] )*(\.[a-z]{2,4})$"; // Presume that the email is invalid $valid = 0; // Validate the syntax if (eregi($regexp, $email)) { list($username,$domaintld) = split("@",$email); // Validate the domain if (getmxrr($domaintld,$mxrecords)) $valid = 1; } else { $valid = 0; } return $valid; }

php輸出驗證碼怎麼弄(php郵箱驗證函數)1

,

更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!

查看全部

相关生活资讯推荐

热门生活资讯推荐

网友关注

Copyright 2023-2024 - www.tftnews.com All Rights Reserved