E书首页 - 下载 - 范文 - IT - 秘书 - 专家 - 创业 - 健康 - 百科 - 电影 - 娱乐 - 写真 - 英语 - 技术 - BBS - BLOG
IT资讯 | 业 界 | 互 联 网 | 通 信 | 人 物 | 数 码 | 软 件 | 硬 件 | 游 戏 | 技术百科 | 搜索引擎 | 操作系统
网络编程 | 网页设计 | 图形图像 | 网络媒体 | 网络安全 | 防 火 墙 | 站长必修 | 建站相关 | 数 据 库 | 服 务 器
游客登录 安全防范 NET专区 PHOTOSHOP专题 设为首页 加入收藏
您现在的位置: 中华E书网 >> IT学院 >> 网络编程 >> PHP专区 >> 正文
▎PHP4.04 新增加了专用的字符函数 Ctype
PHP4.04 新增加了专用的字符函数 Ctype
作者:佚名   文章来源:EBOOK-CN.COM   更新时间:2005-12-4 15:37:30
Character type functions
These functions check whether a character or string falls into a certain character class according to the i current locale.
这些函数根据当前现场的 i 检查一个字符或字符串是否在一个字符类里面!

When called with an integer argument these functions behave exactly like their C counterparts.
当使用整数参数调用时,这些函数和 C 里面的函数完全匹配。

When called with a string argument they will check every character in the string and will only return true if every character in the string matches the requested criteria.
当使用字符串参数,将检查字符串里面的每一个字符,如果字符串里面的每个字符都等同于请求标准时返回 true.

Passing anything else but a string or integer will return false immediately.
传送非字符串或整数的参数将立即返回 false


Warning
警告:

These functions are new as of PHP 4.0.4 and might change their name in the near future. Suggestions are to change them to ctype_issomething() instead of ctype_somthing() or even to make them part of ext/standard and use their original C-names, although this would possibly lead to further confusion regarding the isset() vs. is_sometype() problem.

这些函数是 php4.04 新增加的。可能在近期改变。建议包括更改 ctype_issomething() 代替 ctype_somthing(),甚至让他们成为扩展/标准的一部分,和使用他们的原始 C_名字。尽管可能导致将来 isset() 对 is_sometype() 的混乱。


  • 上一篇文章:

  • 下一篇文章:

  • 相关文章
    PHP中的DOM XML函数…
    Pattern Modifiers - 规则表达式的修饰符…
    PHP4实际应用经验篇(6)
    PHP4实际应用经验篇(5)
    PHP4实际应用经验篇(4)
    PHP4实际应用经验篇(3)
    PHP4实际应用经验篇(2)
    PHP4实际应用经验篇(1)
    Pattern Modifiers - 规则表达式的修饰符…
    正则表达式例子:将MM/DD/YYYY格式的日期转…
    正则表达式例子:在一个字符串中查找另一个…
    正则表达式例子:获得某个网页上的所有超裢…
    虚拟主机 | 数据恢复 | 操作系统
    网络游戏 | 液晶电视 | 数码相机
    电子商务 | 思科认证 | 系统集成
    防 火 墙 | 服 务 器 | 路 由 器
    ▎编辑推荐
    ▎最新热门
    ▎合作链接

    | 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 | |
    建议使用IE5.5以上版本浏览-感谢263数据中心 提供技术支持
    中华E书网 版权所有 本站通用网址:中华E书网
    沪ICP备05001118号