I want a version of str_replace() that only replaces the first occurrence of $search in the $subject. Is there an easy solution to thi
str_replace()
$search
$subject
The easiest way would be to use regular expression.
The other way is to find the position of the string with strpos() and then an substr_replace()
But i would really go for the RegExp.