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

mb_output_handler()

mb_output_handler - Callback function converts character encoding in output buffer

Syntax

string mb_output_handler (string $contents, int $status)

Arguments

  • contents - The contents of the output buffer.
  • status - The status of the output buffer.

Description

mb_output_handler() is ob_start() callback function. mb_output_handler() converts characters in the output buffer from internal character encoding to HTTP output character encoding.

Version

PHP 4.0.6, 5

Return value

The converted string.