Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php filter email

<php
$email_a = 'joe@example.com';
$email_b = 'bogus';

if (filter_var($email_a, FILTER_VALIDATE_EMAIL)) 
    echo "OK";


if (filter_var($email_b, FILTER_VALIDATE_EMAIL)) {
    echo "OK";
} else {
    echo "TRY AGAIN";
}
?>
 
PREVIOUS NEXT
Tagged: #php #filter #email
ADD COMMENT
Topic
Name
2+2 =