/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function is_email_valid($email) { return (preg_match("/[-a-zA-Z0-9_.+]+@[a-zA-Z0-9-]{2,}\.[a-zA-Z]{2,}/", $email) > 0) ? true : false; }