PHP strlen() Function


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

Syntax
strlen(string)
Parameters
  • String - (Required) Specify the string to check.
Example
<?php
    echo strlen("Good Morning");
?>

Output

12

Prev Next