iconv_strlen

(PHP 5 CVS only)

iconv_strlen --  Returns the character count of string

Description

int iconv_strlen ( string str [, string charset])

Returns the character count of str.

In contrast to strlen(), the return value of iconv_strlen() is the number of characters that occur in the given byte sequence str, which is not necessarily the same as the byte length of the string.

If charset parameter is omitted, str will be assumed to be encoded in iconv.internal_charset.