← All docs
mb_regex_encoding()
Reads or changes the multibyte regex encoding independently of the internal text encoding.
mb_regex_encoding()
function mb_regex_encoding(?string $encoding = null): string|bool
Reads or changes the multibyte regex encoding independently of the internal text encoding.
Parameters:
$encoding(?string), defaultnull, optional
Returns: string|bool
Availability
| Compiled (AOT) | Magician (eval) |
|---|---|
| Available | Available |
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how mb_regex_encoding is implemented in the compiler, see the internals page.