如何獲得INDEXED數組結果?如何從Kohana 3.2中的查詢結果獲取索引數組?
$qry1 = DB::select('name')->from('people')->execute();
$assoc_array = $qry1->as_array();
$object = $qry1->as_object();
// $indexed_array = [...]
僅供學習之用,謝謝。
這就像:
$indexed_result[0]; // Name
// $indexed_result[1];
// $indexed_result[2];
謝謝!正是我在尋找的東西。 –