String replace: index and value : String Replace « String « PHP

String replace: index and value

print(substr_replace("ABCDEFG", "-", 2, 3));


Related examples in the same category

1.Quantifier Syntaxes
2.str_replace: @ (at)
3.Replacing a Pattern with a Found String
4.Replace the tag content without getting rid of any attributes
5.String replace with Regular Expressions
6.What happens when multiple instances of the search string overlap?