int strlen ( string str ) returns the number of characters in it: : strlen « String « PHP






int strlen ( string str ) returns the number of characters in it:

 
<?
    print strlen("Foo") . "\n"; // 3
    print strlen("Goodbye, Perl!") . "\n"; // 14
?>
  
  








Related examples in the same category

1.Calculating the length of a string
2.Checking String Length
3.Checking String Length: int strlen ( string string )
4.Concisely checking the length of a trimmed string
5.strlen.php