mb_regex_encoding
Function • Deprecated in PHP 8.6
Set/Get character encoding for multibyte regex.
mb_regex_encoding Function synopsis
#[\Deprecated]
mb_regex_encoding(?string $encoding = null): string|bool
Parameters
$encoding
OptionalType?stringDefault valuenull
Return value
Typestring|bool
Changes to the mb_regex_encoding Function
PHP 8.6
- Function deprecated
PHP 8.0
- Return type added:
string|bool - Parameter type added for parameter #1 (
$encoding):?string - Parameter default value added for position #1 (
$encoding):null
- mb_regex_encoding($encoding)
+ mb_regex_encoding(?string $encoding = null): string|bool mb_regex_encoding Function Availability
mb_regex_encoding Function Availability| PHP Version | Availability |
|---|---|
| PHP 8.6Upcoming Release | Yes Deprecated |
| PHP 8.5Supported (Latest) | Yes |
| PHP 8.4Supported | Yes |
| PHP 8.3Security-Fixes Only | Yes |
| PHP 8.2Security-Fixes Only | Yes |
| PHP 8.1Unsupported | Yes |
| PHP 8.0Unsupported | Yes |
| PHP 7.4Unsupported | Yes |
| PHP 7.3Unsupported | Yes |
| PHP 7.2Unsupported | Yes |
| PHP 7.1Unsupported | Yes |
| PHP 7.0Unsupported | Yes |
| PHP 5.6Unsupported | Yes |
| PHP 5.5Unsupported | Yes |
| PHP 5.4Unsupported | Yes |
| PHP 5.3Unsupported | Yes |