PHP String Functions
strlen() Function
Definition and Usage
The strlen() function returns the length of a string.
Syntax
| Parameter |
Description |
| string |
Required. Specifies the string to check |
Example 1
Return the length of the string "Hello":
<?php
echo strlen("Hello");
?>
Run Example>>