Заменить первый символ в строке


$s = 'D';
$str = 'Ronald';
$str = substr_replace($str, $s, 0, 1);
echo($str); // Donald