Я хочу знать, как вернуть наибольшее значение в массиве?
КОДЫ МОЕЙ МОДЕЛИ
$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;
Подробнее здесь: https://stackoverflow.com/questions/385 ... ry-builder
Мобильная версия