文档介绍:PHP常见函数大全 字符串函数(important) addcslashes – 像C语言一样使用反斜线转义字符串中字符 addslashes -- 使用反斜线引用字符串 bin2hex --  将二进制数据转换成十六进制表示 chop -- rtrim() 别名函数 chr -- 返回指定字符 chunk_split -- 将字符串分割成小块 convert_cyr_string --  将字符由一个 Cyrillic 字符转换成另一个 convert_uudecode --  Decode a uuencoded string convert_uuencode --  Uuencode a string count_chars --  返回字符串所用字符信息 crc32 -- 计算一个字符串 crc32 多项式 crypt – 将字符串用DES编码加密 echo – 输出一个或是多个字符串 explode -- 使用一个字符串分割另一个字符串 fprintf – 格式化一个字符串并输出 get_html_translation_table --  Returns the translation table used by // & ' " > < htmlspecialchars() and htmlentities() htmlspecialchars -- 将特定字符转换成HTML实体 htmlentities – 将全部字符转换成HTML实体 html_entity_decode – 将全部HTML实体转换成对应字符 htmlspecialchars_decode --  将特定HTML实体转换为对应字符 hebrev --  Convert logical Hebrew text to visual text hebrevc --  Convert logical Hebrew text to visual text with newline conversion implode – 将一个数组全部元素连接成一个字符串 join --  implode()函数别名 levenshtein --  Calculate Levenshtein distance between two strings localeconv -- Get numeric formatting information rtrim -- 去除一个字符串右边空白(或是其它字符) ltrim --  去除一个字符串左边空白(或是其它字符) trim – 去掉字符串左右两边空白(或其它字符) md5_file – 将一个给定文件用MD5编码 md5 --  将一个给定字符串用MD5编码 metaphone -- Calculate the metaphone key of a string money_format – 将一个数字根据货币格式进行格式化????? nl_langinfo --  Query language and locale information nl2br --  将字符串中\n换成<br > number_format -- Format a number with grouped thousands ord – 返回一个字符ASCII值 parse_str -- 解析字符串变量 print – 输出一个字符串 printf – 格式化并输出该字符串 quoted_printable_decode --  Convert a quoted-printable string to an 8 bit string quotemeta -- Quote meta characters setlocale -- Set locale information sha1_file – 将一个文件用SHA1进行编码(加密) sha1 -- 将一个字符串用SHA1进行编码(加密) similar_text -- 计算两个字符串之间相同性 soundex --计算一个字符串soundex key sprintf – 返回一个格式化后字符串 sscanf --  Parses input from a string according to a format str_ireplace --  Case-insensitive version of str_replace(). str_pad --  Pad a string