帝国软件
  设为首页 加入收藏 关于我们
 
解密帝国网站管理系统
栏 目:
 
您的位置:首页 > 技术文档 > PHP编程
PHP4.04 新增加了专用的字符函数 Ctype
作者:匿名 发布时间:2003-01-27 来源:
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() 的混乱。

  
评论】【加入收藏夹】【 】【打印】【关闭
※ 相关链接
 ·Windows 98下安装Apache(PWS) PH  (2005-03-12)
 ·RedHat上安装 apache + gd1.8.3   (2005-03-11)
 ·PHP4.04在英文win2000下的安装  (2005-03-11)
 ·PHP4.03在linux下的安装  (2005-03-11)
 ·PHP4.04在win98下的安装  (2005-03-11)
 ·PHP4.23在WindowsXP下的IIS和Apa  (2005-03-11)
 ·apache2.0.39 php4.2.3在windows  (2005-03-11)
 ·PHP4(windows版本)中的COM函数  (2005-03-11)
 ·让你的PHP4和PHP5共存...  (2005-03-11)
 ·在Windows中安装Apache2和PHP4的  (2005-03-11)

   栏目导行
  PHP编程
  ASP编程
  ASP.NET编程
  JAVA编程
   站点最新
·致合作伙伴的欢迎信
·媒体报道
·帝国软件合作伙伴计划协议
·DiscuzX2.5会员整合通行证发布
·帝国CMS 7.0版本功能建议收集
·帝国网站管理系统2012年授权购买说
·PHPWind8.7会员整合通行证发布
·[官方插件]帝国CMS-访问统计插件
·[官方插件]帝国CMS-sitemap插件
·[官方插件]帝国CMS内容页评论AJAX分
   类别最新
·Windows下集成安装Apache,PHP,MYSQ
·Mysql注入:SQL Injection with MyS
·PHP 的来龙去脉
·PHP 的功能概述
·PHP与其它CGI的比较
·PHP 的编译配置详细选项
·php.ini 配置详细选项
·如何写作PHP程序
·Hello,World
·嵌入方法
 
关于帝国 | 广告服务 | 联系我们 | 程序开发 | 网站地图 | 留言板 帝国网站管理系统