<?php
function badWordsFilter($inputWord) {
$badWords = Array("bad","words","here"); for($i=0;$i<count($badWords);$i++) { return true;
}
return false;
}
if (badWordsFilter("bad")) {
echo "Bad word was found";
} else {
echo "No bad words detected";
}
// your code goes here
PD9waHAKCmZ1bmN0aW9uIGJhZFdvcmRzRmlsdGVyKCRpbnB1dFdvcmQpIHsKICAkYmFkV29yZHMgPSBBcnJheSgiYmFkIiwid29yZHMiLCJoZXJlIik7CiAgZm9yKCRpPTA7JGk8Y291bnQoJGJhZFdvcmRzKTskaSsrKSB7CiAgICAgaWYoJGJhZFdvcmRzWyRpXSA9PSBzdHJ0b2xvd2VyKCRpbnB1dFdvcmQpKQogICAgICAgIHJldHVybiB0cnVlOwogICAgIH0KICByZXR1cm4gZmFsc2U7Cn0KCmlmIChiYWRXb3Jkc0ZpbHRlcigiYmFkIikpIHsKICAgIGVjaG8gIkJhZCB3b3JkIHdhcyBmb3VuZCI7Cn0gZWxzZSB7CiAgICBlY2hvICJObyBiYWQgd29yZHMgZGV0ZWN0ZWQiOwp9CgovLyB5b3VyIGNvZGUgZ29lcyBoZXJl