title: Format a Word in php
body: <p>I have retrieve value from mysql database in php, The value is paragraph. I want to format(BOLD) the words which is comes after 'From' and 'To'
  Eg : If i get from db is - first name changed: From  abc To xyz. 
  Here I want to format (Bold) exactly 'abc' and 'xyz'</p>
  
  <p>edit:</p>
  
  <p>Op wants to define a list of keywords. </p>
  
  <p>He wants to search for those keywords inside a string and add markup to the word following the keyword.</p>
  
  <pre><code>$keywords = array('From','To');
  $string = 'Going From abc To xyz';
  $newString = askedFunction($string, $keywords); 
  // add the asked funtionality in this place
  // expected result:
  echo $newString; // From &lt;b&gt;abc&lt;/b&gt; To &lt;b&gt;xyz&lt;/b&gt;
  </code></pre>