title: function to check if a string contains a word from a database
body: <p>I have a table which contains a list of blocked words</p>
  
  <pre><code>+--------+------------------+
  |  id    |  word            |
  +--------+------------------+
  |   1    |  this            |
  |   2    |  word            |
  |   3    |  is              |
  |   4    |  blocked         |
  +--------+------------------+
  </code></pre>
  
  <p>What I need to do is write a function that checks if a string contains a blocked word (word in the table) for example:</p>
  
  <pre><code>function blocked($string){
      if(***blocked***){
          return true;
      }else{
          return false;
      }
  }
  </code></pre>
  
  <p>The function should return <code>true</code> regardless if the word is a word on its own, or if its hidden in another word:</p>
  
  <pre><code>$string = "I want to see if this string is blocked"; //returns `true` because it contains 'this', 'is' and 'blocked'
  
  
  $string = "iwanttoseeifthisstringisblocked"; //returns `true`
  </code></pre>
  
  <p>Hope my question is clear,</p>
  
  <p>Any help appreciated</p>