There is a object from function result():
foreach ($query->result() as $row)
{
echo $row->title;
echo $row->name;
echo $row->body;
}
How I can get the same object from the next array:
$arr[$key] = array(
'Reason' => $status,
'Time' => $val->time,
'IdUser' => $val->dot,
'Date' => $val->date,
'IdUser' => $val->IdUser,
'Photo' => $val->Photo
);
I tried (object)$arr