Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- - Email validator
- - Ensures an email is valid in the format of user@example.com
- $email - The email address to validate
- */
- function validateEmail($email)
- {
- if(filter_var($email, FILTER_VALIDATE_EMAIL)) return true;
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement