हिंदी

Write Programs for the following. Write a PHP code to count no. of words in the given string. - Information Technology

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 5: Server-Side Scripting (PHP) - Exercises [पृष्ठ ७८]

APPEARS IN

बालभारती Information Technology (IT) (Science) [English] 12 Standard HSC Maharashtra State Board
अध्याय 5 Server-Side Scripting (PHP)
Exercises | Q 7.2 | पृष्ठ ७८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×