<?php // set some text to scan $userText = "This is a shitty way to screw with assholes"; require_once("profanity_filter.php"); $ft = new profanityFilter(); $contentRating = $ft->scanText($userText); if ($contentRating < 5) { echo "Clean enough..."; } else { echo "No way!"; } exit; ?>