How can use program to count the letters in praghragh | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How can use program to count the letters in praghragh

by java , c++,c,python or another language

26th Apr 2018, 6:06 PM
QQM
QQM - avatar
3 Answers
+ 2
yes you can that by use the program below by java https://code.sololearn.com/cXZnR8Z5eOxX/?ref=app
28th Apr 2018, 12:21 PM
Qutaba Qais Mahmood
Qutaba Qais  Mahmood - avatar
+ 1
<?php $str='Hello World'; $str = preg_replace("/[^A-Za-z]/" , " ", $str); echo $str; //HelloWorld echo strlen($str); //10 ?> The above regex replaces all numbers, symbols & spaces. It will allow only alphabets A-Z and a-z.
26th Apr 2018, 6:36 PM
Rhythm Khandelwal
26th Apr 2018, 6:26 PM
TurtleShell
TurtleShell - avatar