您好,欢迎访问一九零五行业门户网

PHP字符串处理函数大全

addcslashes — 以 c 语言风格使用反斜线转义字符串中的字符addslashes — 使用反斜线引用字符串bin2hex — 将二进制数据转换成十六进制表示chop — rtrim 的别名chr — 返回指定的字符chunk_split — 将字符串分割成小块convert_cyr_string — 将字符由一种 cyrillic 字符转换成另一种convert_uudecode — 解码一个 uuencode 编码的字符串convert_uuencode — 使用 uuencode 编码一个字符串count_chars — 返回字符串所用字符的信息crc32 — 计算一个字符串的 crc32 多项式crypt — 单向字符串散列echo — 输出一个或多个字符串explode — 使用一个字符串分割另一个字符串fprintf — 将格式化后的字符串写入到流get_html_translation_table — 返回使用 htmlspecialchars 和 htmlentities 后的转换表hebrev — 将逻辑顺序希伯来文(logical-hebrew)转换为视觉顺序希伯来文(visual-hebrew)hebrevc — 将逻辑顺序希伯来文(logical-hebrew)转换为视觉顺序希伯来文(visual-hebrew),并且转换换行符hex2bin — 转换十六进制字符串为二进制字符串html_entity_decode — convert all html entities to their applicable charactershtmlentities — convert all applicable characters to html entitieshtmlspecialchars_decode — 将特殊的 html 实体转换回普通字符htmlspecialchars — convert special characters to html entitiesimplode — 将一个一维数组的值转化为字符串join — 别名 implodelcfirst — 使一个字符串的第一个字符小写levenshtein — 计算两个字符串之间的编辑距离localeconv — get numeric formatting informationltrim — 删除字符串开头的空白字符(或其他字符)md5_file — 计算指定文件的 md5 散列值md5 — 计算字符串的 md5 散列值metaphone — calculate the metaphone key of a stringmoney_format — formats a number as a currency stringnl_langinfo — query language and locale informationnl2br — 在字符串所有新行之前插入 html 换行标记number_format — 以千位分隔符方式格式化一个数字ord — 返回字符的 ascii 码值parse_str — 将字符串解析成多个变量print — 输出字符串printf — 输出格式化字符串quoted_printable_decode — convert a quoted-printable string to an 8 bit stringquoted_printable_encode — convert a 8 bit string to a quoted-printable stringquotemeta — quote meta charactersrtrim — 删除字符串末端的空白字符(或者其他字符)setlocale — set locale informationsha1_file — 计算文件的 sha1 散列值sha1 — 计算字符串的 sha1 散列值similar_text — 计算两个字符串的相似度soundex — calculate the soundex key of a stringsprintf — return a formatted stringsscanf — 根据指定格式解析输入的字符str_getcsv — 解析 csv 字符串为一个数组str_ireplace — str_replace 的忽略大小写版本str_pad — 使用另一个字符串填充字符串为指定长度str_repeat — 重复一个字符串str_replace — 子字符串替换str_rot13 — 对字符串执行 rot13 转换str_shuffle — 随机打乱一个字符串str_split — 将字符串转换为数组str_word_count — 返回字符串中单词的使用情况strcasecmp — 二进制安全比较字符串(不区分大小写)strchr — 别名 strstrstrcmp — 二进制安全字符串比较strcoll — 基于区域设置的字符串比较strcspn — 获取不匹配遮罩的起始子字符串的长度strip_tags — 从字符串中去除 html 和 php 标记stripcslashes — 反引用一个使用 addcslashes 转义的字符串stripos — 查找字符串首次出现的位置(不区分大小写)stripslashes — 反引用一个引用字符串stristr — strstr 函数的忽略大小写版本strlen — 获取字符串长度strnatcasecmp — 使用“自然顺序”算法比较字符串(不区分大小写)strnatcmp — 使用自然排序算法比较字符串strncasecmp — 二进制安全比较字符串开头的若干个字符(不区分大小写)strncmp — 二进制安全比较字符串开头的若干个字符strpbrk — 在字符串中查找一组字符的任何一个字符strpos — 查找字符串首次出现的位置strrchr — 查找指定字符在字符串中的最后一次出现strrev — 反转字符串strripos — 计算指定字符串在目标字符串中最后一次出现的位置(不区分大小写)strrpos — 计算指定字符串在目标字符串中最后一次出现的位置strspn — 计算字符串中全部字符都存在于指定字符集合中的第一段子串的长度。strstr — 查找字符串的首次出现strtok — 标记分割字符串strtolower — 将字符串转化为小写strtoupper — 将字符串转化为大写strtr — 转换指定字符substr_compare — 二进制安全比较字符串(从偏移位置比较指定长度)substr_count — 计算字串出现的次数substr_replace — 替换字符串的子串substr — 返回字符串的子串trim — 去除字符串首尾处的空白字符(或者其他字符)ucfirst — 将字符串的首字母转换为大写ucwords — 将字符串中每个单词的首字母转换为大写vfprintf — 将格式化字符串写入流vprintf — 输出格式化字符串vsprintf — 返回格式化字符串wordwrap — 打断字符串为指定数量的字串
其它类似信息

推荐信息