string_utf8_offset [function]

string_utf8_offset( string ustr, int charnum[, int byteoff ])

returns byte offset of character in UTF-8 string, optionally skipping the specified number of bytes

string_utf8_offset( "標準", 2 ); // returns 6