PHP strlen() function


In this article, We will explain to you PHP strlen() function with example.

PHP strlen() function

The strlen() function is a built-in function of PHP. which is return the length of the string. so you can see our PHP String Function example.

Syntax

strlen(string);

Example

<?PHP
  echo strlen("This is my website");
?>

Output

18