Below is the simple PHP function to check for valid email address. function is_valid_email($email) { if(preg_match(“/[a-zA-Z0-9_-.+]+@[a-zA-Z0-9-]+.[a-zA-Z]+/”, $email) > 0) return true; else return false; }
Leave a CommentTutorials focused on Web Development, ReactJS, JavaScript, PHP, Database Design, Devops
Below is the simple PHP function to check for valid email address. function is_valid_email($email) { if(preg_match(“/[a-zA-Z0-9_-.+]+@[a-zA-Z0-9-]+.[a-zA-Z]+/”, $email) > 0) return true; else return false; }
Leave a Comment