string - библиотека для манипуляции с multibyte strings
use Opis\String\UnicodeString as wstring;
$str = wstring::from('??????????');
echo $str->substring(3, 4)
->toUpper(); //> ????
https://github.com/opis/string
use Opis\String\UnicodeString as wstring;
$str = wstring::from('??????????');
echo $str->substring(3, 4)
->toUpper(); //> ????