首頁 >php教程 >PHP源码 >一个低调有内涵的E-mail验证类!

一个低调有内涵的E-mail验证类!

PHP中文网
PHP中文网原創
2016-05-26 08:19:151213瀏覽

php代码

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Sample</title>
    </head>
    <body>
        <?php
        //www.codepearl.com
        include_once &#39;class.verifyEmail.php&#39;;

        $email = &#39;verify@codepearl.com&#39;;

        $vmail = new verifyEmail();

        if ($vmail->check($email)) {
            echo &#39;email &lt;&#39; . $email . &#39;&gt; exist!&#39;;
        } elseif ($vmail->isValid($email)) {
            echo &#39;email &lt;&#39; . $email . &#39;&gt; valid, but not exist!&#39;;
        } else {
            echo &#39;email &lt;&#39; . $email . &#39;&gt; not valid and not exist!&#39;;
        }
        ?>
    </body>
</html>
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn