iconv_strlen
iconv_strlen
Returns the character count of string
**iconv_strlen** string $string $encoding
In contrast to ,
counts the occurrences of characters
in the given byte sequence on the basis of
the specified character set, the result of which is not necessarily
identical to the length of the string in bytes.
strlen``iconv_strlen``string
stringThe string.
encoding
If parameter is omitted or null,
is assumed to be encoded in
.
encoding``stringiconv.internal_encoding
Returns the character count of , as an integer,
or false if an error occurs during the encoding.
string
grapheme_strlen``mb_strlen``strlen