function customArrayMerge($array1, $array2) {
foreach ($array2 as $value) {
$array1[] = $value;
}
return $array1;
}
$array1 = array(1, 2, 3);
$array2 = array(4, 5, 6);
$mergedArray = customArrayMerge($array1, $array2);
print_r($mergedArray);