string_utf8_length [function]

string_utf8_length( string ustr, int byteoff = 0[, int numbytes[, int flags ]])

returns length of UTF-8 string or the specified part of it

string_utf8_length( "標準", 3 ); // returns 1