Array Argument for mb_convert_encoding()

With the mbstring extension enabled, you can convert between different encodings:

var_dump(mb_convert_encoding('seriös', 'ISO-8859-1'));

When running this program at a shell that uses UTF-8 encoding, you will see a question mark like substitution character because your shell tries to interpret an ISO-8859-1 string as UTF-8. Nevertheless, the conversion has worked fine.

Since PHP 7.2, you can also pass an array of strings to convert:

var_dump(mb_convert_encoding(['seriös', 'Maß'], 'ISO-8859-1'));

In that case, the result will also be an array.