मराठी
महाराष्ट्र राज्य शिक्षण मंडळएचएससी विज्ञान (सामान्य) इयत्ता १२ वी

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×