Sunday, September 14, 2008

The strlen() function

The strlen() function returns the length of string.

Syntax: strlen(string);

Example inputs:

$str1= "A simple PHP program";
echo strlen($str1);

No comments: