Translating string to another lang using array
<p>I want to translate all the keys from the array that occur in this string: </p>

<pre><code>$bar = "It gonna be tornado tomorrow and snow today.";
</code></pre>

<p>and replacing it with the value using this array: </p>

<pre><code> $arr = array(
   "tornado" =&gt; "kasırga",
   "snow" =&gt; "kar"
);
</code></pre>

<p>So the output will be: </p>

<pre><code>$bar = "It gonna be kasırga tomorrow and kar today.";
</code></pre>
