how to make the value of an array as the keys of the values of another array in PHP?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5422955/merging-php-array-one-as-keys-the-other-as-values">Merging PHP array, one as Keys the other as Values?</a>  </p>
</blockquote>



<p>i have an array of keys, and i have an array of values..how to make the values of arrray A, as the "keys" of the values of array B ?</p>

<pre><code>array A

   [0] =&gt; 224
    [1] =&gt; 77
    [2] =&gt; 78
    [3] =&gt; 79
    [4] =&gt; 80
    [5] =&gt; 81
    [6] =&gt; 82
    [7] =&gt; 76
)
1

array B

Array
(
    [0] =&gt; Men Shoes
    [1] =&gt; Fashion Accessories
    [2] =&gt; Men Apparels
    [3] =&gt; Shoes &amp; Belts
    [4] =&gt; Watches &amp; Clocks
    [5] =&gt; Women Apparels
    [6] =&gt; Others
    [7] =&gt; Bags
</code></pre>

<p>what i want to happen is make it like this</p>

<pre><code>array(
 [224] =&gt; Men Shoes
 [77] =&gt; Fashion Accessories
 [78] =&gt; Men Apparells
 [79] =&gt; Shoes &amp; Belts
 [80] =&gt; Watches &amp; clocks
 [81] =&gt; Women Apparels
 [82] =&gt; Others
 [76] =&gt; Bags 
)
</code></pre>
