开发者

CodeIgniter's valid_email() vs PHP filter

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜