str_replace() replaces ALL occurences. What if you only want to replace one of t...

@dseguy@phpc.social

str_replace() replaces ALL occurences. What if you only want to replace one of them?

I have 3, but there are others. What other option do #PHP offer?

#phptip #phptrick