- var_dump: documentation ( source)
- mb_substr: documentation ( source)
- mb_strlen: documentation ( source)
<?php
$string = "abcdأبتث";
$charsCount = mb_strlen($string);
for($i = 0; $i < $charsCount; $i++){
$char = mb_substr($string, $i, 1);
var_dump($char);
}