A string like (for example):
$s = "allo";
i wanted to replace its first character with he to become hello using the indexes, so i used
$s = "allo";
$s[0] = "he";
echo $s;
the result i expected was hello but got hllo
is there a kind of a limit on changing the letters by indexes in a string?