public function containsBlockedWord($text){
        if(!is_array($this->blockedWords)){$this->getBlockedWords();}
        foreach($this->blockedWords as $words){
            if(strpos(strtolower($text), strtolower($words['word'])) !== false){return true;}
        }
        return false;
    }
public function containsBlockedWord($text){
        if(!is_array($this->blockedWords)){$this->getBlockedWords();}
        foreach($this->blockedWords as $words){
            if(strpos(strtolower($text), strtolower($words['word'])) !== false){return true;}
        }
        return false;
    }
public function containsBlockedWord ( $ text ) { if ( ! is_array ( $ this -> blockedWords ) ) { $ this -> getBlockedWords ( ) ; } foreach ( $ this -> blockedWords as $ words ) { if ( strpos ( strtolower ( $ text ) , strtolower ( $ words [ 'word' ] ) ) !== false ) { return true ; } } return false ; }
Checks to see if the string given contains any of the banned words
@param string $text This should be the string of text that you wish to check for the banned words
@return boolean if the test contain a banned word will return true else return false
Checks to see if the string given contains any of the banned words