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