Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php filter emal

<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 #emal
ADD COMMENT
Topic
Name
9+3 =