PHP Email Validation with build in Function

if (!filter_var('bob@example.de', FILTER_VALIDATE_EMAIL)) {
	print "thats not right";
} else {
	print "that right";
}

POST A COMMENT

  • You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>