multiple string replace
<p>I need to replace multiple text with it's associated text</p>

<p>Example: I have string like: <code>"apple is a great fruit"</code></p>

<p>Now I need to replace <code>"apple"</code> to <code>"stackoverflow"</code>, and <code>"fruit"</code> to <code>"website"</code></p>

<p>I know I can use <code>str_replace</code>, but is there any other way? <strong><code>str_replace</code> would be slow in my case</strong>, because I need to replace atleast 5 to 6 words</p>

<p>Help appreciated.</p>
