title: How to remove offensive words from post by php?
body: <p>Assume "xyza" is a bad word. I'm using following method to replace offensive words-</p>
  
  <pre><code>$text = str_replace("x***","(Offensive words detected &amp; removed!)",$text);
  </code></pre>
  
  <p>This code will replace xyza into "(Offensive words detected &amp; removed!)".</p>
  
  <p>But problem is "Case" if someone type XYZA my code can't detect it. How to solve it?</p>