Source Code:
(back to article)
<?php $email = "example@example.com"; if (filter_var($email, FILTER_VALIDATE_EMAIL)) { echo "Email is valid"; } else { echo "Email is not valid"; } ?>
Result:
Report an issue