iconv_strlen
(PHP 5)
iconv_strlen — 文字列の文字数を返す
説明
int iconv_strlen
( string $str
[, string $charset
] )
strlen() とは違い、iconv_strlen() は与えられたバイト列 str 中に現れる文字の数を 指定された文字セットに基づいて数えます。この結果は、必ずしも文字列の バイト数と一致するとは限りません。
返り値
str の文字数を返します。