Slide 90
Slide 90 text
@arnoutboks #odeaandecode
More accurate types
value_utf16, 'UTF-8', 'UTF-16');
return UTF8Bytes::fromPHPString($value_utf8);
}
public function toISO88591(): ISO88591Bytes {
$value_iso88591 = mb_convert_encoding(
$this->value_utf16, 'ISO-8859-1', 'UTF-16');
return ISO88591Bytes::fromPHPString($value_iso88591);
}
// ...
}