Create an array from 2 other arrays
<pre><code>$arrayA = Array ( 
                 [0] =&gt; 1, 
                 [1] =&gt; 2, 
                 [2] =&gt; 4 
                )

$arrayB = Array ( 
                 [1] =&gt; Dog, 
                 [2] =&gt; Cat, 
                 [3] =&gt; Cow, 
                 [4] =&gt; Duck 
                )
</code></pre>

<p>How do I create an <code>$arrayC</code> that takes the value from the above 2 arrays:</p>

<pre><code>$arrayC = Array ( 
                 [1] =&gt; Dog, 
                 [2] =&gt; Cat, 
                 [4] =&gt; Duck 
                )
</code></pre>

<p>Theoretically, it's something like this:</p>

<pre><code>$arrayC = Array ( 
                 [$arrayA[0]] =&gt; $arrayB[$arrayA[0]],
                 [$arrayA[1]] =&gt; $arrayB[$arrayA[1]],
                 [$arrayA[2]] =&gt; $arrayB[$arrayA[2]]
                )
</code></pre>

<p>Thanks.</p>
