I found this code that replaces the second char or index of a string.
$string="blah";
$string=substr_replace($string,"",1,1);
but instead, i want to have a string added on the second index of a string.
$input = 'asdf';
$string_to_be_added = 'eee';
$output = 'aseeedf';
what should be changed in my code?