<?php
1 => array( 1 => 'teste1', 2 => 'teste2', 3 => 'teste3'), 2 => array(3 => 'teste4', 5 => 'teste5') );
1 => array( 3 => 'teste6', 4 => 'teste7') );
function uniqKeys($arr1, $arr2)
{
foreach($arr2 as $key => $value)
{
}
return $arr1;
}
print_r(uniqKeys
($teste1, $teste2));
PD9waHAKCiR0ZXN0ZTEgPSBhcnJheSgKICAgICAgMSA9PiBhcnJheSggMSA9PiAndGVzdGUxJywgMiA9PiAndGVzdGUyJywgMyA9PiAndGVzdGUzJyksCiAgICAgIDIgPT4gYXJyYXkoMyA9PiAndGVzdGU0JywgNSA9PiAndGVzdGU1JykKKTsKCiR0ZXN0ZTIgPSBhcnJheSgKICAgICAgMSA9PiBhcnJheSggMyA9PiAndGVzdGU2JywgNCA9PiAndGVzdGU3JykKKTsKCmZ1bmN0aW9uIHVuaXFLZXlzKCRhcnIxLCAkYXJyMikKewogICAgZm9yZWFjaCgkYXJyMiBhcyAka2V5ID0+ICR2YWx1ZSkKICAgIHsKICAgICAgICAkYXJyMVska2V5XSA9IGFycmF5X2tleV9leGlzdHMoJGtleSwgJGFycjEpID8gYXJyYXlfbWVyZ2UoJGFycjFbJGtleV0sICR2YWx1ZSkgOiAkdmFsdWU7CiAgICB9CiAgICAKICAgIHJldHVybiAkYXJyMTsKfQoKcHJpbnRfcih1bmlxS2V5cygkdGVzdGUxLCAkdGVzdGUyKSk7