I am new to codeigniter and I have following array:
$data = array(
'username' => $this->input->post('uname'),
'fname' => $this->input->post('fname'),
'lname' => $this->input->post('lname'),
'phone' => $this->input->post('phone'),
'email' => $this->input->post('email'),
'password' => $this->input->post('pass'),
'bdate' => $this->input->post('date'),
'status' => $this->input->post('status')
);
I want to push following item in that
$data = array_push($data, 'userfile', $_FILES['userfile']['name']);
Please make correction in it. How to push an element in to an array.