PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular

strlen

Tags: PHP 5.x PHP 7.x PHP 8.x

strlen — Get string length.

Description

strlen(
    string $string
): int
Returns the length of the given string.

Parameters

string
The string being measured for length.

Return Values

The length of the string on success, and 0 if the string is empty.

strlen - New snippets