Ich versuche, zwei Arrays zusammenführen, aber NULL
bekommen. Unten ist mein CodeWie mehrere Arrays in Codeigniter zusammengeführt werden
$a = 1;
foreach($codes as $values) {
$id = $values['id'];
$post_data = array (
"id" => $id,
"name" => $this->input->post('Name'),
"from_date" => $this->input->post('FromDate'),
"to_date" => $this->input->post('ToDate')
);
$this->data['output' . $a++] = $this->my_modal->simple_post($post_data);
}
$this->data['output'] = array_merge($this->data['output1'], $this->data['output2']);
var_dump($this->data['output']);
Alle Vorschläge werden geschätzt. Dank ..
Danke .. Seine Arbeit .. –