HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

strlen

Description

The strlen of String for PHP get string length.

Syntax

strlen ( string $string ) : int

Parameters

string

The string being measured for length.

Return

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

Examples

1

<?

$string = 'Hello World!';

$return = strlen($string);

echo $return;
12