Hyvor Developer
Home
Download
Copy
Code
<?php $str = 'This is a string with seven words'; echo str_word_count($str);
Result