According to RFC 3629, a UTF-8 character can have at most 4 bytes.
However, this implementation supports UTF-8 characters containing up to 6
bytes.
public static getCharLength ( string $byte ) : integer | ||
$byte | string | The byte to be analyzed. |
return | integer |