Strip specific words from string
<p>I want to strip whole words from a string wherever they are inside the string.</p>

<p>I have created an array of forbidden words:</p>

<pre><code>$wordlist = array("or", "and", "where", ...)
</code></pre>

<p>Now I strip the words:</p>

<pre><code>foreach($wordlist as $word)
$string = str_replace($word, "", $string);
</code></pre>

<p>The problem is that the above code also strips words that contain the forbidden words like "sand" or "more".</p>
