I have 2 set of 2d array and i want merge into 1 2d array. but the number of element in each array its not same and for the first 2 element is same and i don\'t want to duplicat
use array_merge_recursive example
array_merge_recursive
$array = array_merge_recursive($array1, $array2); var_dump($array);