Hướng dẫn replace first match php
To expand on @renocor's answer, I've written a function that is 100% backward-compatible with The function could be completely self-contained, if you wanted to replace the function call with
Note: Whenever possible, Usage
Function |