what is the syntax of the STRLEN() function in php?
strlen(string)
Parameter | Description |
---|---|
string | Required. Specifies the string to check |
examples of the STRLEN() function
Example 1. In this example, we return the length of the string “Hello”.
<?php
echo strlen("Hello");
?>
Example 2. In this example, we return the length of the string “Hello World”.
<?php
echo strlen("Hello World");
?>