- chr: documentation ( source)
- print_r: documentation ( source)
- str_split: documentation ( source)
<?php
$string = "Bonjour";
$stringArray = str_split($string);
foreach ($stringArray as $letter) {
$string[$letter] = chr($letter);
}
print_r($string);