← 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), default null, optional

Returns: string|int|bool

Availability

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.