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

mb_output_handler

Description

Callback function converts character encoding in output buffer

Syntax

mb_output_handler(
    string $string,
    int $status
): string

Parameters

string

The contents of the output buffer.

status

The status of the output buffer.

Return

The converted string.

Examples

1

<?

$encoding = 'UTF-8';

mb_http_output($encoding);

$callback = 'mb_output_handler';

ob_start($callback);

    echo '🐘output';

?>
🐘output
HomeMenu