← All docs

mb_convert_kana()

Converts Japanese width and kana according to the requested mode flags.

mb_convert_kana()

function mb_convert_kana(string $string, string $mode = 'KV', ?string $encoding = null): string

Converts Japanese width and kana according to the requested mode flags.

Parameters:

  • $string (string)
  • $mode (string), default 'KV', optional
  • $encoding (?string), default null, optional

Returns: string

Availability

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how mb_convert_kana is implemented in the compiler, see the internals page.