Save data from array in variable
Posted
by
marcin_poland
on Stack Overflow
See other posts from Stack Overflow
or by marcin_poland
Published on 2012-11-05T15:22:55Z
Indexed on
2012/11/05
17:00 UTC
Read the original article
Hit count: 145
arrays
|codeigniter
SOLVED!
I`m trying save data from array in variable. I have in controller:
$data = array('upload_data' => $this->upload->data());
and I know that in this array are data about uploading file. One with this date is "file_name"
, and I want to save this value in controller at variable. I try with:
$image_name= $data['file_name'];
But this not working. I use CodeIginter 2.1.3 framework.
Good solution is: $data['upload_data']['file_name']; Thanks for help!
© Stack Overflow or respective owner