3 ms·
With PHP the following simple code works great for me: function validate_email($email) { if(filter_var($email, FILTER_VALIDATE_EMAIL) === FALSE) {
by JimWestergren 14y ago
With PHP the following simple code works great for me:
function validate_email($email) {
if(filter_var($email, FILTER_VALIDATE_EMAIL) === FALSE) {
return false;
} else {
return true;
}
}