PHP: str_replace that only acts on the first match?
Posted
by Rosarch
on Stack Overflow
See other posts from Stack Overflow
or by Rosarch
Published on 2009-08-10T00:39:54Z
Indexed on
2010/04/09
10:33 UTC
Read the original article
Hit count: 244
I want a version of strreplace() that only replaces the first match in the target string. Is there an easy solution to this, or do I need a hacky solution?
© Stack Overflow or respective owner