smiley to image - optimized PHP code
<p>is it a good code or it can be optimized  ?</p>

<pre><code> $tempmsg = str_replace("[:)]","&lt;img src='img/smiley0.png' title='Smile' height='100' width='100'&gt;",$tempmsg);
</code></pre>
