Home > PHP > Function > Multibyte String > mb_http_output()

mb_http_output()

mb_http_output - Set/Get HTTP output character encoding

Syntax

mixed mb_http_output (string $encoding)

Arguments

  • encoding - If encoding is set, mb_http_output() sets the HTTP output character encoding to encoding. If encoding is omitted, mb_http_output() returns the current HTTP output character encoding.

Description

Set/Get the HTTP output character encoding. Output after this function is converted to encoding.

Version

PHP 4.0.6, 5

Return value

If encoding is omitted, mb_http_output() returns the current HTTP output character encoding. Otherwise, Returns TRUE on success or FALSE on failure.