<?php $string = "shot this dude for being a mother"; $bads = array('truck', 'shot'); foreach($bads as $bad) { $place = strpos($string, $bad); if (!empty($place)) { echo 'Bad word'; exit; } else { echo "Good"; } }
You have javascript disabled. You will not be able to edit any code.