← All docs

mb_http_output()

Reads or changes the encoding selected for HTTP output conversion.

mb_http_output()

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

Reads or changes the encoding selected for HTTP output conversion.

Parameters:

  • $encoding (?string), default null, optional

Returns: string|bool

Availability

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how mb_http_output is implemented in the compiler, see the internals page.