I have two dimension array and want to get only same value in another array. In the following array I have 196 two times in keywords array and 1 in array degree. I would to get number 196 in an another array.
Array(
[keywords] => Array (
[0] => 196
[1] => 196
[2] => 520
[3] => 366
[4] => 521
[5] => 934
[6] => 530
[7] => 529
[8] => 487
[9] => 486
[10] => 484
[11] => 483
[12] => 376
[13] => 223
)
[degree] => Array (
[0] => 519
[1] => 196
)
)
I want array like
result (
["WANTED"] = 196
);