Showing posts with label PHP strlen Function Tutorial. Show all posts
Showing posts with label PHP strlen Function Tutorial. Show all posts

Monday, April 30, 2012

PHP strlen Function Tutorial


strlen Function
The strlen function is used to return the length of a string. 

Syntax
strlen(string)
Example
        <?php
       $str = 'I will dress suitably according to my environment.';
       $str_length = strlen($str);
       echo $str_length;
        ?>
Output
50