in reply to How do I find the length of a string?

Use the 'length' function

For a variable $string Its length $stringlength can be found thus:

$stringlength = length($string);

Originally posted as a Categorized Answer.