这是我的输出
Array
(
[0] => Array
(
[count] => 3
[TYPE] => 1
)
[1] => Array
(
[count] => 9
[TYPE] => 2
)
[2] => Array
(
[count] => 0
[TYPE] => 3
)
[3] => Array
(
[count] => 0
[TYPE] => 4
)
)
我现在得到了上面的数组,我像这样调用这个函数
$totalJobsCount = $model->GetStatus($data->id);
现在我想要 [0][count],[1][count],[2][count],[3][count] 的值,所以我这样写
$a = $totalJobsCount[0]['count'];
$a1 = $totalJobsCount[1]['count'];
$a2 = $totalJobsCount[2]['count'];
$a3 = $totalJobsCount[3]['count'];
但我得到了错误,未定义的偏移量 0 问题在哪里,请尽快帮助我提前谢谢