Quote Originally Posted by sherlyk View Post
http://php.flashwebhost.com/sherly/world.php

Code:
<?php

echo strlen ('Beautiful World');
Nice, you can directly pass string to strlen() function.

Code:
<?php

$length = strlen ('Beautiful World');

echo $length;
Here we store the number rrturned by strlen() function to variable $length. Then echo it.