dedecms织梦内容管理系统    
首页 | java | C/C++ | PHP | 操作系统 | ajax | 脚本编程 | 安全技术 | 本站下载页 | flex | CRM | 专题 | QQ群 | 测试中心 | 会员中心 | 积分规则
  当前位置:主页>PHP>php技术资料>文章内容
PHP4.04 新增加了专用的字符函数 Ctype
来源:未知     作者:    
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 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.

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

 

 

上一篇:PHP4.04 增加了对无限精度运算的支持   下一篇:php4的彩蛋
[收藏] [推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
用户名: 新注册) 密码: 匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论
  热点文章
·通过对PHP服务器端特性的配置加
·php与mysql三日通
·AJAX技术在PHP开发中的简单应用
·大家所使用的PHP开发环境
·PHP缓存的实现
·针对PHP新手总结的PHP基础知识
·一个简单实现多条件查询的例子
·PHP串行化变量和序列化对象
·PHP表单
·推荐阅读:php技术生成静态页面
·php实用函数
·php生成随机数
  相关文章
·PHP4.04 增加了对无限精度运算的
·php4的彩蛋
·PHP中的Java扩展
·正则表达式例子:获得某个网页上
·PHP中如何在输出内容后再输出头
·正则表达式例子:在一个字符串中
·RPM安装PHP后应如何配置 Apache
·正则表达式例子:将MM/DD/YYYY格
·PHP中创建并处理图象
·Pattern Modifiers - 规则表达式
·学习使用PHP数组
·PHP4实际应用经验篇(1)
  相关信息
copy right @ 百家拳软件项目研究室 2007 辽ICP备07011763