find the corresponding entries between PHP array and JSON object
<p>I have two arrays</p>

<pre><code>&lt;?php
 $x=array('store1'=&gt;'A','store2'=&gt;'B' ,...);
?&gt;
</code></pre>

<p>and </p>

<pre><code>&lt;script type='text/javascript'&gt;
  var x={"srote1": [12,13],"store2":[20,23] ....};
&lt;/script&gt;
</code></pre>

<p>what is the optimal way to find the corresponding entries between these data structures </p>
