The length() function returns the number of characters in the specified string parameter $myString = "Hello World"; $val = length( $myString ); # Yields 11