Advertisements
Advertisements
प्रश्न
Write Programs for the following.
Write a PHP code to count no. of words in the given string.
संक्षेप में उत्तर
उत्तर
Coding:
<?php
$a="Hypertext Preprocessor";
echo "<br><br> String is ".$a;
echo" <br><br> Words in String is ".str_word_count($a);
?>
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?