0
海 我使用笨......我我的功能phpcalview()
... 這是我的功能如何顯示在視圖頁面中的數組值
function phpcalview()
{
$year = $this->input->post('yearvv');
$data['year'] = $this->adminmodel->selectyear();
$data['date'] = $this->adminmodel->selectmonth();
print_r($data['date']);
$this->load->view('phpcal',$data);
}
我打印值與print_r($data['date']);
我得到像
Array ([0] => Array ([dbdatenum] => 1) [1] => Array ([dbdatenum] => 2) [2] => Array ([dbdatenum] => 3) [3] => Array ([dbdatenum] => 4))
值我想作爲array[0],array[1]
seperately顯示數組在我看來,頁面我怎麼能做到這一點