$text1 =
'
123345
$pattern = '/<img src="\//i';
$pattern = '#<img src="/#i';
str_replace('src="/','src="http://www.qq.com/',$text1);
str_replace('src="/','src="http://www.qq.com/',$text1);
用文本替换效率肯定正没高吧?快10倍
str_replace('src="/','src="http://www.qq.com/',$text1);
用文本替换效率肯定正没高吧?