Forum Moderators: coopster
<?php
mb_internal_encoding("UTF-8");
$s = "Seà ut perspiciatis.";
for($i=0;$i<mb_strlen($s);$i++) {
echo $s[$i];
}
?> Seà ut perspiciatis <?php
for($i=0;$i<mb_strlen($s);$i++) {
echo mb_substr($s,$i,1);
}
?> mb_internal_encoding("UTF-8");
// i used a double space like you did in the following string but the forum software keeps cutting it to 1
$s = "Seà ut perspiciatis.";
$counter = 0;
while (isset($s[$counter])) {
echo '<br />',$counter,':',$s[$counter];
$counter++;
}