Fastest character replace in string

abo elyas

New Member
Need to replace a char from another string.\[code\]$s1='123456789';$s2='abcdefghi';$p=4; // position of char in $s1 to use for replacing (0 is first char)$s2 = ???? ; // code\[/code\]In the end $s2 must be 'abcd5fghi'What would be fastest method?
 
Back
Top