- mb_strlen: documentation ( source)
- dechex: documentation ( source)
- ord: documentation ( source)
<?php
$s = '863491-Detske bavlnene thermo ponozky,
divci i chlapecke';
for($i = 0; $i < mb_strlen($s); $i++) {
echo $s[$i]." ".dechex(ord($s[$i]))."\n";
}