I am getting confused as to how I could loop trough my multidimensional associative array and pull the values separately to insert into my database. I am wanting to pull each item from the old array and populate it into a column called old and pull each item from the new array and populate it to the new column.
$array = array(
'old' => array('item1', 'item2'),
'new' => array('item3', 'item4')
);
foreach($array as $items){
foreach($items as $value){
$model = new \Namespace\Model;
$model->old = $items['old'];
$model->new = $items['new']
$model->save();
}
}