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

No comments:

Post a Comment