Definition
The strlen() function returns the length of a string.
Syntax
strlen(string)
Parameters
Parameter | Description |
---|---|
string |
Required. Specifies the string to check. |
Example
<?php
echo strlen("Welcome to PHP!");