php_word_count

COUNT NO OF WORDS IN STRING 

<!DOCTYPE html>
<html>
<body>

<?php
echo str_word_count("Hello world!");
?>
 
 
</body>
</html>

o/p : 2

Comments :

Post a Comment