header('Content-type:text/html;charset=utf-8');
$str = "Hi! Come on baby";
$rep = array("c","o");
$str = str_replace($rep, "", $str);
echo $str."
";
?>
$content = str_replace(array('字符一', '字符二'), '', $content);
你可以用切割函数explode(),然后将切割的2个值拼凑起来就是你要的值了