'; foreach ($words as $word) { $chopped = substr($word, 0, $length); if (preg_match("/$entry/i", $chopped)) { echo "