mb_regex_encoding
(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)
mb_regex_encoding — Set/Get character encoding for multibyte regex
Parameter-Liste
encoding
-
Der Parameter encoding
legt die Zeichenkodierung fest. Wird er nicht übergeben, so wird die interne
Zeichenkodierung genutzt.
Rückgabewerte
If encoding is set, then
Gibt bei Erfolg true zurück. Bei einem Fehler wird false zurückgegeben.
In this case, the internal character encoding is NOT changed.
If encoding is omitted, then
the current character encoding name for a multibyte regex is returned.
Fehler/Exceptions
As of PHP 8.0.0, a ValueError is thrown if
encoding is an invalid encoding.
Prior to PHP 8.0.0, an E_WARNING was emitted instead.