$array1[] = array(
'tovar'=>1,
'number'=>1
);
$array2[] = array(
'tovar'=>2,
'number'=>1
);
foreach ($array2 AS $val){
$array1[] = $val;
}
echo '<pre>';
print_r($array1);
$array1[] = array(
'tovar'=>1,
'number'=>1
);
$array2[] = array(
'tovar'=>2,
'number'=>1
);
foreach ($array2 AS $val){
$array1[] = $val;
}
echo '<pre>';
print_r($array1);