Welcome to WebmasterWorld Guest from 54.167.65.247

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

How to count how many characters

     
8:01 pm on Jun 14, 2013 (gmt 0)

Junior Member

5+ Year Member

joined:May 17, 2007
posts: 101
votes: 0


i have a field, the field name is name, like
John
Robert
etc

the variable to call name is $name



now i need to display how many characters each name have, for example
John : 4 characters
Robert : 6 character

how to get characters numbers by using the name variable $name, what is the query looks like?


thank you & GBU for all that helping
9:16 pm on June 14, 2013 (gmt 0)

Junior Member

joined:Apr 6, 2013
posts:149
votes: 0


(http://php.net/manual/en/function.strlen.php)