10 juin 2021 ยท We will introduce a method to validate an email address in PHP using the filter_var () function and the FILTER_VALIDATE_EMAIL filter name id. The filter_var () function takes the email as the first argument and the filter name FILTER_VALIDATE_EMAIL to validate the email against the syntax in RFC 822. This method checks the valid email format.