validate given email id in php using filter option

by Ramya 2012-08-13 17:02:03

validate given email id in php using filter option:

You can validate the email id from user input using PHP Filter option.
if(!filter_var("test@hiox.com", FILTER_VALIDATE_EMAIL))
{
echo("Given Email-id is Incorrect");
}
else
{
echo("Given Email-id is Correct");
}
?>


530
like
0
dislike
0
mail
flag

You must LOGIN to add comments