Hi,
I am trying to sort query result into an array.
I have following query.
"select s.*, a.* from students left join addresses as a";
it returns
s.id
s.name
a.id
a.student_id
a.address
I would like to make above result into an array with s and a keys.
array(
"s"=>array("id"=>"value","name"=>"value")
,"a"=>array("id"=>"value","student_id"=>"value","address"=>"value)
)
do I have to make my own function to do it or is there an internal function?