Related questions
How to validate an email address in PHP
I have this function to validate an email addresses:
function validateEMAIL($EMAIL) {
$v = "/[a-zA-Z0-9_-.+]+@[a-zA-Z0-9-]+.[a-zA-Z]+/";
return (bool)preg_match($v, $EMAIL);
}
Is this okay for checking if the email address is valid or not?
How to validate an Email in PHP?
How can I validate the input value is a valid email address using php5. Now I am using this code
function isValidEmail($email){
$pattern = "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$";
if (eregi($pattern, $…
PHP email validation
For PHP what is the best email validation using preg, NOT ereg because it's deprecated/removed.
I don't need to check if the website exists (it's not like maximum security).
I've found many ways with ereg but they (obviously) aren't …