![]() |
It will count number of Words from a String. |
<?php
// PHP program to count number of
// words in a string
$str = "I Love US";
// Using str_word_count() function to
// count number of words in a string
$len = str_word_count($str);
// Printing the result
echo $len;
?>
php count |
Type: | Develop |
Category: | Web Tutorial |
Sub Category: | PHP String Tutorial |
Uploaded by: | Admin |
Read Articlehttps://horje.com/learn/1434/reference