Your Open Source

 
Related Posts
PHP  >>  String

Strlen Function in PHP

strlen() function is used to get the length of a given string.

Syntax is strlen(string).

The string parameter is, of course, required.


<?php echo strlen("Very Simple!"); ?>  

123456789...


Output:12

Here's another example:

<?php $str = 'Too easy';

echo strlen($str); // 8

$str = ' e a s y ';
echo strlen($str); // 9
?>

  • hits 110
  • datetime Aug 02 09 05:42:56
  • author Lazywriter
  • rating

Rating : 12345
Tags :- String

Answers

No Answers..
Your Name:
Your Answers :
<> is a code tag
Preview
Enter the verification code: