← 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), defaultnull, optional
Returns: string
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported through a declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/string/mb_convert_kana.rs).
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.