str_word_count() - شمارش کلمات در یک رشته(str_word_count() - Count Words in a String)
عملکرد PHP str_word_count()
تعداد کلمات در یک رشته.
مثال
Count the number of word in the string "Hello world!":
<?php
echo str_word_count("Hello world!"); // outputs 2
?>