What would be the best way to to insert characters after the first occurrence of a word or phrase in a given string?
e.g.
$var = ‘The big brown dog jumped over the fence’;
Insert an “s” after dog making it, “The big brown dogs jumped over the fence”.
Thanks 🙂
With a combination of
strposandsubstr_replace:DEMO