<?php

header
('Content-type: text/plain; charset=utf-8');

$word utf8_encode('még'); # még = so far, some more

for ($i 0$i strlen($word); $i++)
{
  echo 
ord($word{$i});
  echo 
' ';
  echo 
$word{$i};
  echo 
"\n";
}

echo 
substr($word02);
echo 
"\n";

echo 
mb_substr($word02'utf-8');
echo 
"\n";


?>