无论这个字符串是大写还是小写,我都需要替换子字符串
$sub = "STR"; $newsub="All-"; $str="Strstring"; $newstr=str_replace($sub,$rep,$str);
php
php ×1