$breakfast = array(
'rest_id' => $rest_id ,
'type' => 'Breakfast' ,
'value' => $bprice
);
$lunch = array(
'rest_id' => $rest_id ,
'type' => 'Facilities' ,
'value' => $lprice
);
$dinner = array(
'rest_id' => $rest_id ,
'type' => 'Facilities' ,
'value' => $dprice
);
$data = $breakfast . $lunch . $dinner;
Is the way i created the array $data correct? If yes... now how do i get the array breakfast inside it, if i want to pass it to one function?
I want to do something like this:
$this->db->insert_breakfast($breakfast);
So how do i get breakfast array out of $data now?