Home > Backend Development > PHP Tutorial > php中容易的检测函数

php中容易的检测函数

WBOY
Release: 2016-06-13 11:00:27
Original
778 people have browsed it

php中简单的检测函数
ctype_alnum -- 检测是否是只包含[A-Za-z0-9]
ctype_alpha -- 检测是否是只包含[A-Za-z]
ctype_cntrl -- 检查是否是只包含类是“\r\b\t”之类的字符控制字符
ctype_digit -- 检查时候是只包含数字字符的字符串(0-9)
ctype_graph -- 检查是否是只包含有可以打印出来的字符(除了空格)的字符串
ctype_lower -- 检查是否所有的字符都是英文字母,并且都是小写的
ctype_print -- 检查是否是只包含有可以打印出来的字符的字符串
ctype_punct -- 检查是否是只包含非数字/字符/空格的可打印出来的字符
ctype_space -- 检查是否是只包含类是“\r\b\t”之类的字符和空格
ctype_upper -- 检查是否所有的字符都是英文字母,并且都是大写的
ctype_xdigit --检查是否是16进制的字符串,只能包括“0123456789abcdef”

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template