mb_chr()
function mb_chr(int $codepoint, ?string $encoding = null): string|false
Encodes a Unicode codepoint, or returns false when it cannot be represented.
Parameters:
$codepoint(int)$encoding(?string), defaultnull, optional
Returns: string|false
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_chr.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how mb_chr is implemented in the compiler, see the internals page.