← All docs
mb_internal_encoding()
Reads or changes the default encoding used by mbstring text operations.
mb_internal_encoding()
function mb_internal_encoding(?string $encoding = null): string|bool
Reads or changes the default encoding used by mbstring text operations.
Parameters:
$encoding(?string), defaultnull, optional
Returns: string|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_internal_encoding.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how mb_internal_encoding is implemented in the compiler, see the internals page.