← All docs

mb_detect_order()

Reads or updates the request's encoding detection order.

mb_detect_order()

function mb_detect_order(array|string|null $encoding = null): array|bool

Reads or updates the request’s encoding detection order.

Parameters:

  • $encoding (array|string|null), default null, optional

Returns: array|bool

Availability

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

Internals

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