= $minlen && strlen($word) <= $maxlen && preg_match('/^[a-z]+$/',$word)) { echo $word; exit(); } } croak("Unable to find suitable word"); ?>