<?php
$texto = "oiEusouMuitoLegal";
$letras = preg_split('//', $texto, -1, PREG_SPLIT_NO_EMPTY
);
foreach ($letras as $letra) {
}
}
echo $texto;
PD9waHAKCiR0ZXh0byA9ICJvaUV1c291TXVpdG9MZWdhbCI7CgokbGV0cmFzID0gcHJlZ19zcGxpdCgnLy8nLCAkdGV4dG8sIC0xLCBQUkVHX1NQTElUX05PX0VNUFRZKTsKCmZvcmVhY2ggKCRsZXRyYXMgYXMgJGxldHJhKSB7CgkKCWlmIChjdHlwZV91cHBlcigkbGV0cmEpKSB7CgkJJHRleHRvID0gc3RyX3JlcGxhY2UoJGxldHJhLCAiICRsZXRyYSIsICR0ZXh0byk7Cgl9Cn0KCmVjaG8gJHRleHRvOw==