Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. $email_a = 'joe@example.com';
  2. $email_b = 'bogus';
  3.  
  4. if (filter_var($email_a, FILTER_VALIDATE_EMAIL)) {
  5. echo "This ($email_a) email address is considered valid.";
  6. }
  7. if (filter_var($email_b, FILTER_VALIDATE_EMAIL)) {
  8. echo "This ($email_b) email address is considered valid.";
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement