I want to display my two dimensional array into html table, where similar values should be combined/merged into one cell. For instance, I have an array:-
$final_arr = array(
array(
"id" => "106",
"name" => "Fashion",
"asset" => "project",
"assetid" => "2708",
'version' => "2.16.22"
),
array(
"id" => "2",
"name" => "Sports",
"asset" => "project",
"assetid" => "2758",
'version' => "2.16.26"
),
array(
"id" => "106",
"name" => "Fashion",
"asset" => "tracking",
"assetid" => "2758",
'version' => "2.15.16"
),
array(
"id" => "153",
"name" => "Giyan",
"asset" => "character",
"assetid" => "2694",
'version' => "2.20.6"
)
);
Now I want to display the above result set into an html table as :-
ID Asset Version
106 project 2.16.22
tracking 2.16.26
2 Sports 2.15.16
153 Giyan 2.20.6
Please can someone provide their insight on the same on how this can be achieved?
Thanks much!!