Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $email_a = 'joe@example.com';
- $email_b = 'bogus';
- if (filter_var($email_a, FILTER_VALIDATE_EMAIL)) {
- echo "This ($email_a) email address is considered valid.";
- }
- if (filter_var($email_b, FILTER_VALIDATE_EMAIL)) {
- echo "This ($email_b) email address is considered valid.";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement