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!");
The strlen() function returns the length of a string.
strlen(string)
| Parameter | Description |
|---|---|
string |
Required. Specifies the string to check. |
<?php
echo strlen("Welcome to PHP!");