function ro_str($str) { $f**k = array("幹你娘", "幹您娘", "F**K", "王八蛋", "畜牲", "wyler", "王八", "中出", "內射"); if (!in_array($str, $f**k) === NULL) { $tool = new My_tool(); $tool->error("留言失敗!留言內含過濾字元。"); exit; } }