Hello,
I want to replace only the first matching element in a string instead of replacing every matching element in a string
$str = 'abc abc abc';
$find = 'abc';
$replace = 'def';
echo mb_ereg_replace( $find, $replace, $str );
This will return "def def def".
What would I need to change in the $find or $replace parameter in order to get it to return "def abc abc"?