十月十二
2018-10-12 本文已影响0人
网站蒋立卫
str_word_count():统计字符串含有的单词数
echo str_word_count('hello world, do you like me');//6
调用: mix str_word_count(str $str,[])
输入:目标字符串
输出:统计出的数量
strlen():统计字符串长度int
输入:目标字符串
输出:整型长度
count_chars():统计字符串中所有字母出现次数(0.255)
调用: mixed count_chars ( string string [, intmode ] )