- preg_split: documentation ( source)
- ord: documentation ( source)
<?php
$text = '‖‖‖‖‖‖‖‖‖‖';
$text = preg_split('//u', $text, -1, PREG_SPLIT_NO_EMPTY);
for ($idx = 0; $idx < count($text); $idx++) {
echo $text[$idx] . ' ' . ord($text[$idx]) . PHP_EOL;
}