php 記号の句読点をフィルタ

function filtration_symbol($tt){ //句読点をフィルタ
$str=array(“,","");
$tt=str_replace($str,",$tt);
$str=array(“。","");
$tt=str_replace($str,",$tt);
$str=array(“!","");
$tt=str_replace($str,",$tt);
$str=array(“!","");
$tt=str_replace($str,",$tt);
$str=array(“:","");
$tt=str_replace($str,",$tt);
$str=array(“;","");
$tt=str_replace($str,",$tt);
$str=array(“;","");
$tt=str_replace($str,",$tt);
$str=array(“:","");
$tt=str_replace($str,",$tt);
$str=array(“、","");
$tt=str_replace($str,",$tt);
$str=array(“*","");
$tt=str_replace($str,",$tt);
$str=array(“.","");
$tt=str_replace($str,",$tt);
$str=array(“,","");
$tt=str_replace($str,",$tt);
$str=array(“‘","");
$tt=str_replace($str,",$tt);
$str=array(“’","");
$tt=str_replace($str,",$tt);
$str=array(““","");
$tt=str_replace($str,",$tt);
$str=array(“”","");
$tt=str_replace($str,",$tt);
$str=array(“?","");
$tt=str_replace($str,",$tt);
$str=array(“?","");
$tt=str_replace($str,",$tt);
$str=array(“'","");
$tt=str_replace($str,",$tt);
$str=array('\\’,"");
$tt=str_replace($str,",$tt);
$str=array('/’,"");
$tt=str_replace($str,",$tt);
$str=array(“(“,"");
$tt=str_replace($str,",$tt);
$str=array(“)","");
$tt=str_replace($str,",$tt);
$str=array(“(","");
$tt=str_replace($str,",$tt);
$str=array(“)","");
$tt=str_replace($str,",$tt);
$str=array(“_","");
$tt=str_replace($str,",$tt);
$str=array(“-“,"");
$tt=str_replace($str,",$tt);
$str=array(“-","");
$str=str_replace($str,",$tt);
return $str;
}

Source

Posted by arkgame