echo输出一个或多个字符串print输出字符串printf输出格式化字符串sprintfReturn a formatted stringfprintf将格式化后的字符串写入到流sscanf根据指定格式解析输入的字符vfprintf将格式化字符串写入流vprintf输出格式化字符串vsprintf返回格式化字符串number_format以千位分隔符方式格式化一个数字money_format将数字格式化成货币字符串
addcslashes以 C 语言风格使用反斜线转义字符串中的字符addslashes使用反斜线引用字符串stripcslashes反引用一个使用 addcslashes 转义的字符串stripslashes反引用一个引用字符串html_entity_decodeConvert HTML entities to their corresponding charactershtmlentities将字符转换为 HTML 转义字符htmlspecialchars_decode将特殊的 HTML 实体转换回普通字符htmlspecialchars将特殊字符转换为 HTML 实体get_html_translation_table返回使用 htmlspecialchars 和 htmlentities 后的转换表nl2br在字符串所有新行之前插入 HTML 换行标记
strcspn获取不匹配遮罩的起始子字符串的长度str_word_count返回字符串中单词的使用情况substr_compare二进制安全比较字符串(从偏移位置比较指定长度)similar_text计算两个字符串的相似度soundexCalculate the soundex key of a stringstrcasecmp二进制安全比较字符串(不区分大小写)strcmp二进制安全字符串比较strcoll基于区域设置的字符串比较strnatcasecmp使用“自然顺序”算法比较字符串(不区分大小写)strnatcmp使用自然排序算法比较字符串strncasecmp二进制安全比较字符串开头的若干个字符(不区分大小写)strncmp二进制安全比较字符串开头的若干个字符
其他函数
说明
setlocale设置地区信息metaphoneCalculate the metaphone key of a stringnl_langinfoQuery language and locale information
echo输出一个或多个字符串print输出字符串printf输出格式化字符串sprintfReturn a formatted stringfprintf将格式化后的字符串写入到流sscanf根据指定格式解析输入的字符vfprintf将格式化字符串写入流vprintf输出格式化字符串vsprintf返回格式化字符串number_format以千位分隔符方式格式化一个数字money_format将数字格式化成货币字符串
addcslashes以 C 语言风格使用反斜线转义字符串中的字符addslashes使用反斜线引用字符串stripcslashes反引用一个使用 addcslashes 转义的字符串stripslashes反引用一个引用字符串html_entity_decodeConvert HTML entities to their corresponding charactershtmlentities将字符转换为 HTML 转义字符htmlspecialchars_decode将特殊的 HTML 实体转换回普通字符htmlspecialchars将特殊字符转换为 HTML 实体get_html_translation_table返回使用 htmlspecialchars 和 htmlentities 后的转换表nl2br在字符串所有新行之前插入 HTML 换行标记
strcspn获取不匹配遮罩的起始子字符串的长度str_word_count返回字符串中单词的使用情况substr_compare二进制安全比较字符串(从偏移位置比较指定长度)similar_text计算两个字符串的相似度soundexCalculate the soundex key of a stringstrcasecmp二进制安全比较字符串(不区分大小写)strcmp二进制安全字符串比较strcoll基于区域设置的字符串比较strnatcasecmp使用“自然顺序”算法比较字符串(不区分大小写)strnatcmp使用自然排序算法比较字符串strncasecmp二进制安全比较字符串开头的若干个字符(不区分大小写)strncmp二进制安全比较字符串开头的若干个字符
其他函数
说明
setlocale设置地区信息metaphoneCalculate the metaphone key of a stringnl_langinfoQuery language and locale information