mb_regex_encoding
(PHP 4 >= 4.2.0, PHP 5)
mb_regex_encoding — Set/Get character encoding for multibyte regex
Descrição
Set/Get character encoding for a multibyte regex.
Parâmetros
-
encoding -
O parâmetro
encodingé a codificação de caractere. Se ele é omitido, o valor da codificação de caractere interna é usado.
Valor Retornado
If encoding is set, then
Retorna TRUE em caso de sucesso ou FALSE em caso de falha.
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.
Changelog
| Versão | Descrição |
|---|---|
| 5.6.0 | Default encoding is changed to UTF-8. It was EUC-JP Previously. |
Veja Também
- mb_internal_encoding() - Set/Get internal character encoding
- mb_ereg() - Regular expression match with multibyte support