title: highlight multiple keywords in search
body: <p>i'm using this code to highlight search keywords:</p>
  
  <pre><code>function highlightWords($string, $word)
   {
  
          $string = str_replace($word, "&lt;span class='highlight'&gt;".$word."&lt;/span&gt;", $string);
      /*** return the highlighted string ***/
      return $string;
  
   }
  
   ....
  
    $cQuote =  highlightWords(htmlspecialchars($row['cQuotes']), $search_result);
  </code></pre>
  
  <p>however, this highlights only one keyword. if the user enters more than one keyword, it will narrow down the search but no word is highlighted. how can i highlight more than one word? </p>