← All docs

iconv()

Converts a string from one character encoding to another.

iconv()

function iconv(string $from_encoding, string $to_encoding, string $string): mixed

Converts a string from one character encoding to another.

Parameters:

  • $from_encoding (string)
  • $to_encoding (string)
  • $string (string)

Returns: mixed

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

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