title: How to find and replace whole words in a MySQL text field?
body: <p>I have a sentence:</p>
  
  <p>"How to find and replace word in text from mysql database?"</p>
  
  <p>And MySQL table words, with to 3 column id, word and replaceWord. 
  I have more than 4000 words in databese.</p>
  
  <p>Table:</p>
  
  <pre><code>id     word     replaceWord
   1     text     sentence
   2     word     letter
   3     mysql    MySQL
   4     ..       ...
   5     ..       ...
   6     ..       ...
  </code></pre>
  
  <p>Result:</p>
  
  <p>"How to find and replace <strong>letter</strong> in <strong>sentence</strong> from <strong>MySQL</strong> database?"</p>
  
  <p>I know how to do this without database, but i need database.</p>
  
  <pre><code> &lt;?php
  $text="How to find and replace word in text from mysql database?";
  $replaceWord=array(  "text" =&gt; "sentence", "word" =&gt; "letter", "mysql" =&gt; "MySQL");
  echo strtr($tekst, $replaceWord);
  ?&gt;
  </code></pre>