PHP -Filteremal

<php
$email_a = '[email protected]';
$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";
}
?>
Joyous Jaguar