Counting Letters Using Php
counting letters using php
counting, letters, using, php
Counting Letters Using Php
Post Description: counting letters using php
POST# 1281
Posted On: Thu Apr 24, 2008 3:12 pm
number
Topic: Counting Letters Using Php
do you have a script in php where i can use to count the number of letters in a string

for example i have a string called

$string = 'my name is webune';

as you can see, i have 18 characters in that string


Thu Apr 24, 2008 3:48 pm
1
Web Hosting Support
Reply #1954
try this, copy and save this to webune.php and open it with your browser from your php website you will see how it works

<?
$string = "Webune Web Hosting";

$num_char=strlen($string);

echo $num_char;

?>

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload
     
  1. Counting Letters Using Php