how to combine two arrays in php &return the duplicates?

Shereef H

New member
I have those arrays:

Array ( [0] => a [1] => a [2] => b [3] => c [4] => 1 [5] => 2 [6] => 3 )

Array ( [0] => 0 [1] => 0 [2] => 1 [3] => 2 [4] => 27 [5] => 28 [6] => 29 )

When i combine them the output is :

Array ( [0] => a [1] => b [2] => c [27] => 1 [28] => 2 [29] => 3 )

why it doesn't support duplicates ? plz answer me???
 
Back
Top