title: PHP replace keywords in string with href link
body: <p>I am being "thick this morning" so please excuse this simple question - I have an array of keywords e.g. <code>array('keyword1','keyword2'....)</code> and I have a string of text - (bit like a blog content in length i.e. not just a few words but may be 200-800 words) what is the best way to search the string for the keywords and replace them with an href link. So in the text 'keyword 1' (as plain text) will become <code>&lt;a href='apage'&gt;keyword1&lt;/a&gt;</code> and so on.</p>
  
  <p>See said was being thick this am.</p>
  
  <p>Thanks in adavance.</p>