zoukankan      html  css  js  c++  java
  • php中 被遗忘的函数

    php中被遗忘的函数,这些函数被正则掩盖了他们的光芒

    ctype_alnum -- Check for alphanumeric character(s)

    检测是否是只包含[A-Za-z0-9]

    ctype_alpha -- Check for alphabetic character(s)

    检测是否是只包含[A-Za-z]


    ctype_cntrl -- Check for control character(s)

    检查是否是只包含类是“\r\b\t”之类的字符控制字符


    ctype_digit -- Check for numeric character(s)

    检查时候是只包含数字字符的字符串(0-9)


    ctype_graph -- Check for any printable character(s) except space

    检查是否是只包含有可以打印出来的字符(除了空格)的字符串


    ctype_lower -- Check for lowercase character(s)

    检查是否所有的字符都是英文字母,并且都是小写的


    ctype_print -- Check for printable character(s)

    检查是否是只包含有可以打印出来的字符的字符串


    ctype_punct -- Check for any printable character which is not whitespace or an alphanumeric character

    检查是否是只包含非数字/字符/空格的可打印出来的字符


    ctype_space -- Check for whitespace character(s)

    检查是否是只包含类是“\r\b\t”之类的字符和空格


    ctype_upper -- Check for uppercase character(s)

    检查是否所有的字符都是英文字母,并且都是大写的


    ctype_xdigit -- Check for character(s) representing a hexadecimal digit

    检查是否是16进制的字符串,只能包括“0123456789abcdef”





  • 相关阅读:
    static、final、this、super关键
    细节二:参数、引用类型、实例化
    枚举类型
    单例模式
    细节一:字符串、switch、默认值、数组
    类属性和类方法
    装饰器模式
    TreeSet
    可见参数和增强for以及自动拆装箱
    静态导入
  • 原文地址:https://www.cnblogs.com/firmy/p/2704025.html
Copyright © 2011-2022 走看看