0
我使用CakePHP运行此查询:CakePHP的查询阵列
$total = $this->Lapse->query("select sum(unix_timestamp(stop) - unix_timestamp(start)) from lapses where id = ".$lastId."");
,我得到的回报,这阵列结构:
Array
(
[0] => Array
(
[0] => Array
(
[sum(unix_timestamp(stop) - unix_timestamp(start))] => 1
)
)
)
所以我变量保存这样的:$updateVal = $total[0][0][0];
其中ISN”最漂亮的,有没有办法可以简化这个OTT数组?