Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (430)
Testing (4)
Tools (488)
Twitter (5)
Wearable (26)
Web Design (44)
Collections:
Other Resources:
Validate email Address
Useful PHP Code Snippets for Developers - Validate email Address
✍: Guest
function is_valid_email($email, $test_mx = false)
{
if(eregi("^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $email))
if($test_mx)
{
list($username, $domain) = split("@", $email);
return getmxrr($domain, $mxrecords);
}
else
return true;
else
return false;
}
2015-06-19, 1966🔥, 0💬
Popular Posts:
Where to find tutorials on LibGen (Library Genesis)? Here is a large collection of tutorials to answ...
How to install Mozilla Firefox 2.0 add-on: FireFTP? FireFTP is a Mozilla Firefox 2 add-on that provi...
How to fix the Microphone Permissions error with making a call with Messenger in iPhone? If your Mic...
Where to find answers to frequently asked questions on Adobe FrameMaker? I want to know how to know ...
How do I know what cookies a Website is sending to Mozilla Firefox 2.0? When you are visiting a Webs...