comparing 3 arrays and result in 1 array
<p>i have 3 arrays, i want to get the result of those 3 arrays in one, but how can i deleted those same answer in a arrays?</p>

<p>here's my example:</p>

<pre><code>&lt;?php
$array1 = array("a" =&gt; "green", "red", "blue");
$array2 = array("b" =&gt; "green", "yellow", "red");
$array3 = array("c" =&gt; "white", "blue", "black");
$result = ??? ($array1, $array2, $array3);
print_r($result);
?&gt;

Array
(
    [0] =&gt; green
    [1] =&gt; red
    [2] =&gt; blue
    [3] =&gt; yellow
    [4] =&gt; red
    [5] =&gt; white
    [6] =&gt; black
)
</code></pre>

<p>please help me guys.. thank you..</p>
