I have Array(A) = ('red','green')
and
Array(B)
( array('colour' => "red", 'name_cz' =>"cervena"),
array('colour' => "green", 'name_cz' =>"zelena"),
array('colour' => "blue", 'name_cz' =>"modra"),
array('colour' => "yellow", 'name_cz' =>"zluta")
)
I need to take every value of Array(A), compare it with Array(B) colour values and if it finds get its name_cz value…
so the output of the example should be like $result = (array("cervena", "zelena");
Thanks for help, subii