title: PHP replace text with image
body: <p>This would be an Array of data:</p>
  
  <pre><code>$array = array("sad","bow","blabla");
  </code></pre>
  
  <p>IF
  <code>$input = "I love Stackoverflow! :bow: so much";</code></p>
  
  <p>Output should be:</p>
  
  <pre><code>I love Stackoverflow &lt;img src="smiley/bow.gif" alt=""/&gt; so much
  </code></pre>
  
  <p><strong>What would be the best and fastest way to accomplish this ?</strong></p>