- mb_substr: documentation ( source)
- mb_strlen: documentation ( source)
- str_split: documentation ( source)
- mb_internal_encoding: documentation ( source)
<?php
mb_internal_encoding("UTF-8");
$mb_string = 'žščř';
$l=mb_strlen($mb_string);
for($i=0;$i<$l;$i++)
{
print(mb_substr($mb_string,$i,1)."<br/>");
}
$array = str_split($mb_string);
echo $array[0];
?>