zoukankan      html  css  js  c++  java
  • PHP之string

    string

    addcslashes()

    • Quote string with slashes in a C style
    • 以 C 语言风格使用反斜线转义字符串中的字符

    addslashes()

    • Quote string with slashes
    • 使用反斜线引用字符串

    bin2hex()

    • Convert binary data into hexadecimal representation
    • 函数把包含数据的二进制字符串转换为十六进制值

    chop()

    • Alias of rtrim
    • rtrim 的别名

    chr()

    • Return a specific character
    • 返回指定的字符

    chunk_split()

    • Split a string into smaller chunks
    • 将字符串分割成小块

    convert_cyr_string()

    • Convert from one Cyrillic character set to another
    • 将字符由一种 Cyrillic 字符转换成另一种

    convert_uudecode()

    • Decode a uuencoded string
    • 解码一个 uuencode 编码的字符串

    convert_uuencode()

    • Uuencode a string
    • 使用 uuencode 编码一个字符串

    count_chars()

    • Return information about characters used in a string
    • 返回字符串所用字符的信息

    crc32()

    • Calculates the crc32 polynomial of a string
    • 计算一个字符串的 crc32 多项式

    crypt()

    • One-way string hashing
    • 单向字符串散列

    echo()

    • Output one or more strings
    • 输出一个或多个字符串

    explode()

    • Split a string by string
    • 使用一个字符串分割另一个字符串

    fprintf()

    • Write a formatted string to a stream
    • 将格式化后的字符串写入到流

    get_html_translation_table()

    • Returns the translation table used by htmlspecialchars and htmlentities
    • 返回使用 htmlspecialchars 和 htmlentities 后的转换表

    hebrev()

    • Convert logical Hebrew text to visual text
    • 将逻辑顺序希伯来文(logical-Hebrew)转换为视觉顺序希伯来文(visual-Hebrew)

    hebrevc()

    • Convert logical Hebrew text to visual text with newline conversion
    • 将逻辑顺序希伯来文(logical-Hebrew)转换为视觉顺序希伯来文(visual-Hebrew),并且转换换行符

    hex2bin()

    • Decodes a hexadecimally encoded binary string
    • 转换十六进制字符串为二进制字符串

    html_entity_decode()

    • Convert all HTML entities to their applicable characters

    htmlentities()

    • Convert all applicable characters to HTML entities
    • 将字符转换为 HTML 转义字符

    htmlspecialchars_decode()

    • Convert special HTML entities back to characters
    • 将特殊的 HTML 实体转换回普通字符

    htmlspecialchars()

    • Convert special characters to HTML entities
    • 将特殊字符转换为 HTML 实体

    implode()

    • Join array elements with a string
    • 将一个一维数组的值转化为字符串

    join()

    • Alias of implode
    • 别名 implode

    lcfirst()

    • Make a string's first character lowercase
    • 使一个字符串的第一个字符小写

    levenshtein()

    • Calculate Levenshtein distance between two strings
    • 计算两个字符串之间的编辑距离

    localeconv()

    • Get numeric formatting information

    ltrim()

    • Strip whitespace (or other characters) from the beginning of a string
    • 删除字符串开头的空白字符(或其他字符)

    md5_file()

    • Calculates the md5 hash of a given file
    • 计算指定文件的 MD5 散列值

    md5()

    • Calculate the md5 hash of a string
    • 计算字符串的 MD5 散列值

    metaphone()

    • Calculate the metaphone key of a string

    money_format()

    • Formats a number as a currency string
    • 将数字格式化成货币字符串

    nl_langinfo()

    • Query language and locale information

    nl2br()

    • Query language and locale information
    • 在字符串所有新行之前插入 HTML 换行标记

    number_format()

    • Format a number with grouped thousands
    • 以千位分隔符方式格式化一个数字

    ord()

    • Return ASCII value of character
    • 返回字符的 ASCII 码值

    parse_str()

    • Parses the string into variables
    • 将字符串解析成多个变量

    print()

    • Output a string
    • 输出字符串

    printf()

    • Output a formatted string
    • 输出格式化字符串

    quoted_printable_decode()

    • Convert a quoted-printable string to an 8 bit string
    • 将 quoted-printable 字符串转换为 8-bit 字符串

    quoted_printable_encode()

    • Convert a 8 bit string to a quoted-printable string
    • 将 8-bit 字符串转换成 quoted-printable 字符串

    quotemeta()

    • Quote meta characters
    • 转义元字符集

    rtrim()

    • Strip whitespace (or other characters) from the end of a string
    • 删除字符串末端的空白字符(或者其他字符)

    setlocale()

    • Set locale information
    • 设置地区信息

    sha1_file()

    • Calculate the sha1 hash of a file
    • 计算文件的 sha1 散列值

    sha1()

    • Calculate the sha1 hash of a string
    • 计算字符串的 sha1 散列值

    similar_text()

    • Calculate the similarity between two strings
    • 计算两个字符串的相似度

    soundex()

    • Calculate the soundex key of a string

    sprintf()

    • Return a formatted string

    sscanf()

    • Parses input from a string according to a format
    • 根据指定格式解析输入的字符

    str_getcsv()

    • Parse a CSV string into an array
    • 解析 CSV 字符串为一个数组

    str_ireplace()

    • Case-insensitive version of str_replace
    • str_replace 的忽略大小写版本

    str_pad()

    • Pad a string to a certain length with another string
    • 使用另一个字符串填充字符串为指定长度

    str_repeat()

    • Repeat a string
    • 重复一个字符串

    str_replace()

    • Replace all occurrences of the search string with the replacement string
    • 子字符串替换

    str_rot13()

    • Perform the rot13 transform on a string
    • 对字符串执行 ROT13 转换

    str_shuffle()

    • Randomly shuffles a string
    • 随机打乱一个字符串

    str_split()

    • Convert a string to an array
    • 将字符串转换为数组

    str_word_count()

    • Return information about words used in a string
    • 返回字符串中单词的使用情况

    strcasecmp()

    • Binary safe case-insensitive string comparison
    • 二进制安全比较字符串(不区分大小写)

    strchr()

    • Alias of strstr
    • 别名 strstr

    strcmp()

    • Binary safe string comparison
    • 二进制安全字符串比较

    strcoll()

    • Locale based string comparison
    • 基于区域设置的字符串比较

    strcspn()

    • Find length of initial segment not matching mask
    • 获取不匹配遮罩的起始子字符串的长度

    strip_tags()

    • Strip HTML and PHP tags from a string
    • 从字符串中去除 HTML 和 PHP 标记

    stripcslashes()

    • Un-quote string quoted with addcslashesshes 转义的字符串
    • 反引用一个使用 addcsla

    stripos()

    • Find the position of the first occurrence of a case-insensitive substring in a string
    • 查找字符串首次出现的位置(不区分大小写)

    stripslashes()

    • Un-quotes a quoted string
    • 反引用一个引用字符串

    stristr()

    • Case-insensitive strstr
    • strstr 函数的忽略大小写版本

    strlen()

    • Get string length
    • 获取字符串长度

    strnatcasecmp()

    • Case insensitive string comparisons using a "natural order" algorithm
    • 使用“自然顺序”算法比较字符串(不区分大小写)

    strnatcmp()

    • String comparisons using a "natural order" algorithm
    • 使用自然排序算法比较字符串

    strncasecmp()

    • Binary safe case-insensitive string comparison of the first n characters
    • 二进制安全比较字符串开头的若干个字符(不区分大小写)

    strncmp()

    • Binary safe string comparison of the first n characters
    • 二进制安全比较字符串开头的若干个字符

    strpbrk()

    • Search a string for any of a set of characters
    • 在字符串中查找一组字符的任何一个字符

    strpos()

    • Find the position of the first occurrence of a substring in a string
    • 查找字符串首次出现的位置

    strrchr()

    • Find the last occurrence of a character in a string
    • 查找指定字符在字符串中的最后一次出现

    strrev()

    • Reverse a string
    • 反转字符串

    strripos()

    • Find the position of the last occurrence of a case-insensitive substring in a string
    • 计算指定字符串在目标字符串中最后一次出现的位置(不区分大小写)

    strrpos()

    • Find the position of the last occurrence of a substring in a string
    • 计算指定字符串在目标字符串中最后一次出现的位置

    strspn()

    • Finds the length of the initial segment of a string consisting entirely of characters contained within a given mask
    • 计算字符串中全部字符都存在于指定字符集合中的第一段子串的长度。

    strstr()

    • Find the first occurrence of a string
    • 查找字符串的首次出现

    strtok()

    • Tokenize string
    • 标记分割字符串

    strtolower()

    • Make a string lowercase
    • 将字符串转化为小写

    strtoupper()

    • Make a string uppercase
    • 将字符串转化为大写

    strtr()

    • Translate characters or replace substrings
    • 转换指定字符

    substr_compare()

    • Binary safe comparison of two strings from an offset, up to length characters
    • 二进制安全比较字符串(从偏移位置比较指定长度)

    substr_count()

    • Count the number of substring occurrences
    • 计算字串出现的次数

    substr_replace()

    • Replace text within a portion of a string
    • 替换字符串的子串

    substr()

    • Return part of a string
    • 返回字符串的子串

    trim()

    • Strip whitespace (or other characters) from the beginning and end of a string
    • 去除字符串首尾处的空白字符(或者其他字符)

    ucfirst()

    • Make a string's first character uppercase
    • 将字符串的首字母转换为大写

    ucwords()

    • Uppercase the first character of each word in a string
    • 将字符串中每个单词的首字母转换为大写

    vfprintf()

    • Write a formatted string to a stream
    • 将格式化字符串写入流

    vprintf()

    • Output a formatted string
    • 输出格式化字符串

    vsprintf()

    • Return a formatted string
    • 返回格式化字符串

    wordwrap()

    • Wraps a string to a given number of characters
    • 打断字符串为指定数量的字串
    CRYPT_SALT_LENGTH integer
    CRYPT_STD_DES integer
    CRYPT_EXT_DES integer
    CRYPT_MD5 integer
    CRYPT_BLOWFISH integer
    HTML_SPECIALCHARS (integer)
    HTML_ENTITIES (integer)
    ENT_COMPAT (integer)
    ENT_QUOTES (integer)
    ENT_NOQUOTES (integer)
    ENT_IGNORE (integer)
    ENT_SUBSTITUTE (integer)
    ENT_DISALLOWED (integer)
    ENT_HTML401 (integer)
    ENT_XML1 (integer)
    ENT_XHTML (integer)
    ENT_HTML5 (integer)
    CHAR_MAX (integer)
    LC_CTYPE (integer)
    LC_NUMERIC (integer)
    LC_TIME (integer)
    LC_COLLATE (integer)
    LC_MONETARY (integer)
    LC_ALL (integer)
    LC_MESSAGES (integer)
    STR_PAD_LEFT (integer)
    STR_PAD_RIGHT (integer)
    STR_PAD_BOTH (integer)
    
  • 相关阅读:
    [ 9.10 ]CF每日一题系列—— 186A模拟处理字符串
    python查看删除你微信的账号
    python进阶之路4.2---装饰器
    python进阶之路4.1---生成器与迭代器
    Python进阶之路---1.4python数据类型-数字
    Python进阶之路---1.3python环境搭建
    Python进阶之路---1.2python版本差异
    Python进阶之路---1.1python简介
    麦进斗Magento2 SEO默认设置的完整策划
    如何修改Magento主题中的toplinks
  • 原文地址:https://www.cnblogs.com/zhangrxiang/p/8490278.html
Copyright © 2011-2022 走看看