0
我該如何比較PHP中的2個數組來找出每個數組有哪些共同點。比較2個陣列的相似度
實施例將是
陣列1
Array
(
[0] => ace
[1] => one
[2] => five
[3] => nine
[4] => elephant
)
陣列2
Array
(
[0] => elephant
[1] => seven
[2] => ace
[3] => jack
[4] => queen
)
輸出 陣列 ( [0] =>王牌 [1] =>大象 )