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