A abo elyas New Member Sep 17, 2012 #1 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?
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?