php过滤敏感字符

$res = array('123','456','678');
$str = "123你好";
$res = array_combine($res,array_fill(0,count($res),'*'));
$to_str = strtr($str,$res);
return $to_str;