← All docs
mb_substitute_character()
Reads or changes the replacement codepoint or mode used for invalid or unrepresentable characters.
mb_substitute_character()
function mb_substitute_character(string|int|null $substitute_character = null): string|int|bool
Reads or changes the replacement codepoint or mode used for invalid or unrepresentable characters.
Parameters:
$substitute_character(string|int|null), defaultnull, optional
Returns: string|int|bool
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_substitute_character.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how mb_substitute_character is implemented in the compiler, see the internals page.