PHP » Strings » strlen()

Syntax:
int strlen(string s)
s
The string.

Returns the length of a string.

The strlen() function returns the length of a string.

Examples

Code:
<?php

print strlen("Hello there") . "<br>";
print strlen("a b c");

?>
Output:
11
5
Explanation:

strlen() is used to find the lengths of two strings.