我想知道如何比较这两个输出http://prntscr.com/bx7ay9并返回中最高的array
?返回从模型中查看的最高值
MY型号代码
$this->db->select('additional');
$this->db->from('order_detail');
$this->db->where('order_id',$id);
$query = $this->db->get();
foreach ($query->result() as $row)
{
$return[] = $row->additional;
}
return $return;
对于这样一个小输出例如,它可能是更好的只写的输出直接在这里不是发送的屏幕截图的。 – contradictioned