- var_dump: documentation ( source)
- bin2hex: documentation ( source)
<?php
$bi = IntlBreakIterator::createCodePointInstance();
$bi->setText("A\xED\xA0\xBDa");
foreach ($bi->getPartsIterator() as $cp) {
var_dump($bi->getErrorMessage(), bin2hex($cp));
}