title: Replace certain words in multiple strings PHP
body: <p>I have a database of strings and a database of words and their corrections. I need to find the words within the strings and replace them with their corrections. I cannot figure out how to do it and have it loop through all of the strings in the database. I need help.</p>
  
  <p>I was thinking along the lines of the following pseudo code"</p>
  
  <pre><code>//while loop to grab all the strings from db
  
  //add all the words to look for to an array
  //add all of the word replacements to an array
  
  //preg replace or str replace the words with the replacements in the string.
  </code></pre>
  
  <p>Any ideas?</p>