My php code is here:
$ora_result = ora_submit_query($ora_conn, $sql);
if ($ora_result) {
while ($row = oci_fetch_array($ora_result, OCI_BOTH)) {
print_r($row[0]." ".$row[1]." ".$row[2]."\n");
}
And I got a result like this
=============================
2018-06-09 item1 73.8
2018-06-09 item2 83.2
2018-06-09 item3 83.2
2018-06-10 item4 33.1
2018-06-10 item5 80.2
2018-06-10 item6 77.2
I wonder if it could reform an array into
2018-06-09 73.8 83.2 83.2
2018-06-10 33.1 80.2 77.2
and "item" consider as neglectable. The best way would be array push $row[2] value somewhere else / do a hash on key "2018-06-09"?