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
Stay away from regex and filter_var() solutions for validating email. See this answer: https://stackoverflow.com/a/42037557/953833
regex
filter_var()