Of Zend_Validate_EmailAddress and filter_var(..., FILTER_VALIDATE_E开发者_如何学PythonMAIL), which is better when validating an email address and why?
Both can be used to validate an email address, but Zend_Validate_EmailAddress is more powerful. While filter_var is a simple yes or no validator, there are many options which can change how strict Zend_Validate_EmailAddress is.
You can choose which parts to validate, rules for validating those parts, and even to validate MX records.
Finally, Zend_Validate_EmailAddress can be readily used in combination with Zend_Filter_Input and Zend_Form where filter_var can't.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论