<?php $array = [ ['report_date' => 'date', 'name' => 'name'], ['report_date' => 'date', 'color' => 'color'] ]; $result = []; foreach ($array as $row) { $result[$row['report_date']] = ($result[$row['report_date']] ?? []) + $row; } var_export(array_values($result));
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`