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