str_replace可以用来替换找到的匹配项吗?
例如
str ='lol';
str_replace('l','$ 0',$ str);
我不想使用preg_replace。
$str = 'lol'; $str = str_replace('l','$0',$str); print_r($str);