ctype函数
The Ctype extension provides a set of functions that are used to verify whether the characters in a string are of the correct type. In this article we’ll take a look at the syntax used by the character type functions, see what specific functions exist, and how they are used to perform validation.
Ctype扩展提供了一组函数,这些函数用于验证字符串中的字符是否为正确的类型。 在本文中,我们将研究字符类型函数使用的语法,查看存在哪些特定函数以及如何使用它们执行验证。
The extension is enabled by default if you’re running PHP 4.2 or above. If you cannot stand the thought of this extension running with your installation for some crazy reason, then you can use the --disable-ctype
compile switch to turn it off.
如果您运行的是PHP 4.2或更高版本,则默认情况下启用该扩展。 如果出于某种疯狂的原因无法忍受此扩展随安装一起运行,则可以使用--disable-ctype
编译开关将其关闭。
If you have a background in C, then you’re probably already familiar with the character type functions because that is where
更多推荐
ctype函数_Ctype函数简介
发布评论