SyntaxFix
Write A Post
Hire A Developer
Questions
You can use filter_var for this.
<?php function validateEmail($email) { return filter_var($email, FILTER_VALIDATE_EMAIL); } ?>