How can I validate the input value is a valid email address using php5. Now I am using this code
function isValidEmail($email){
$pattern = \"^[_a-z0-9
Use:
var_dump(filter_var('bob@example.com', FILTER_VALIDATE_EMAIL));
$validator = new EmailValidator();
$multipleValidations = new MultipleValidationWithAnd([
new RFCValidation(),
new DNSCheckValidation()
]);
$validator->isValid("example@example.com", $multipleValidations); //true