The bad words are:
fuck
shit
caterpillar
badwords


replace('[*]', ' ', $message); } echo $tags[0][2][0]; return array($tags,trim($message)); } // ############################################################################# $censorwords[]="fuck"; $censorwords[]="shit"; $censorwords[]="caterpillar"; $censorwords[] = "badwords"; echo "The bad words are:
"; foreach ($censorwords AS $censorword) { echo $censorword . "
"; } echo "
"; if(isset($_POST["message"])){ $message = $_POST["message"]; echo '
'; echo ''; echo '
'; echo ''; echo '
'; echo "
=====================

"; //remove tags $test = strip_bbcode($message); echo $test[1] . '
'; $text = preg_replace('/[\][^\[][^\]]*[\]]/i', '', $message