直播中
When called with an integer argument these functions behave exactly like their C counterparts.
當(dāng)使用整數(shù)參數(shù)調(diào)用時,這些函數(shù)和 C 里面的函數(shù)完全匹配。
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.
當(dāng)使用字符串參數(shù),將檢查字符串里面的每一個字符,如果字符串里面的每個字符都等同于請求標(biāo)準(zhǔn)時返回 true.
Passing anything else but a string or integer will return false immediately.
傳送非字符串或整數(shù)的參數(shù)將立即返回 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.
這些函數(shù)是 php4.04 新增加的??赡茉诮诟淖?。建議包括更改 ctype_issomething() 代替 ctype_somthing(),甚至讓他們成為擴(kuò)展/標(biāo)準(zhǔn)的一部分,和使用他們的原始 C_名字。盡管可能導(dǎo)致將來 isset() 對 is_sometype() 的混亂。