开发者

CodeIgniter's valid_email() vs PHP filter

开发者 https://www.devze.com 2023-04-13 03:43 出处:网络
I noticed that CodeIgniter has implemented the valid_email() function, in which they are using preg_match.

I noticed that CodeIgniter has implemented the valid_email() function, in which they are using preg_match.

Why d开发者_如何转开发idn't they use PHP's filter with FILTER_VALIDATE_EMAIL?


filter_var() requires PHP 5.2 or greater. CodeIgniter runs on PHP 5.1.6 or greater. The CodeIgniter developers can't guarantee that people will have access to the filter_var() function.

0

精彩评论

暂无评论...
验证码 换一张
取 消