我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

CodeIgniter的valid_email()vs PHP过滤器

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

Why didn'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.

近期文章

  • PHP包括不在WordPress中加载
  • 使用Microsoft SQL查询反序列化PHP
  • 搜索OOP - 模型设计(MVC)[关闭]
  • 未收到$ .get []变量
  • 检测textarea提交中的特定单词
  • 在没有javascript的情况下在PHP中模拟后退按钮
  • Flex + Air应用程序到数据库?
  • jquery声音通知
  • PHP foreach循环嵌套
  • 在PHP中摆脱重复信息
  • Joomla JHTML ::日历输入验证
  • PHP自定义结帐开源[关闭]
  • CakePHP检查或添加用户ID到帖子
  • 如何在PHP中更新单行?
  • Windows Azure中的PHP Web服务Nusoap
  • 麻烦多个mysql查询
  • php foreach循环在表单验证中
  • 从多维数组中获取值并存储到关联数组中
  • 获取所有数据并删除表格的副本
  • 将会话限制为仅1个用户登录实例

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华