PHP Replace the Nth occurrence of char in a string with substring

后端 未结 0 850
[愿得一人]
[愿得一人] 2020-12-08 09:05

I\'m trying to figure out how to accomplish the following. Basically, I want to do a str_replace() but only at the Nth occurrence. Any ideas?

//Inputs
$origin         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题