mixed str_word_count ( string $string [, int $format=0 [, string $charlist ]] )
它返回有关字符串中使用的单词的信息
Sr.No | 参数 & 描述 |
---|---|
1 |
string 它指定要检查的字符串 链接:https://www.learnfk.comhttps://www.learnfk.com/php/php-function-str-word-count.html 来源:LearnFk无涯教程网 |
2 |
return 指定String的返回值 |
3 |
char 它指定将哪些字符视为单词 |
它返回数组或整数。
<?php echo str_word_count("tutorials point simply easy learning"); ?>
这将产生以下输出-
5
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)