I have two arrays, one is keys and second is values. I want combine together in foreach loop, but i'm failed to create logic. Please see code i hope you will understand what i exactly want?
$keys = Array ( [0] => name [1] => qualification [2] => Major Subject [3] => Matric [4] => Conferred Date: [5] => Attendance From: [6] => Attendance To: [7] => AK [8] => AK [9] => AK )
$values = Array ( [0] => ayaz [1] => matric [2] => Chemistry [3] => Olevel [4] => 2015-08-12 [5] => 2015-08-22 [6] => 2015-08-14 [7] => AK [8] => AK [9] => AK )
I want to combine it in foreach loop and set as key value. So please guide me how can do this. Thanks in advanced.
I have tried this but failed to get better result
foreach(array_map(null, $savvion_key, $savvion_value) as $combined) {
print_r($combined);
}