HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

mb_http_output

Description

The mb_http_output of Multibyte String for PHP set/Get HTTP output character encoding.

Syntax

mb_http_output(
    ?string $encoding = null
): string|bool

Parameters

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.

Return

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

Examples

1 · void

<?

$return = mb_http_output();

var_export($return);
'UTF-8'

2 · encoding

<?

$encoding = mb_internal_encoding();

$return = mb_http_output($encoding);

var_export($return);
true