Здравствуйте! Есть набор данных.
0 =>
array (size=6)
'id' => string '1' (length=1)
'product_id' => string '43' (length=2)
'name_extra_bed' => string '2 взрослых' (length=18)
'room_extra_bed_id' => string '1' (length=1)
'date' => string '01.06 - 30.06' (length=13)
'price' => string '1500' (length=4)
1 =>
array (size=6)
'id' => string '2' (length=1)
'product_id' => string '43' (length=2)
'name_extra_bed' => string '3 взрослых' (length=18)
'room_extra_bed_id' => string '2' (length=1)
'date' => string '01.06 - 30.06' (length=13)
'price' => string '1700' (length=4)
2 =>
array (size=6)
'id' => string '5' (length=1)
'product_id' => string '43' (length=2)
'name_extra_bed' => string '2 взрослых' (length=18)
'room_extra_bed_id' => string '1' (length=1)
'date' => string '01.07 - 10.07' (length=13)
'price' => string '1560' (length=4)
3 =>
array (size=6)
'id' => string '6' (length=1)
'product_id' => string '43' (length=2)
'name_extra_bed' => string '2 взрослых' (length=18)
'room_extra_bed_id' => string '1' (length=1)
'date' => string '11.07 - 20.07' (length=13)
'price' => string '1600' (length=4)
4 =>
array (size=6)
'id' => string '7' (length=1)
'product_id' => string '43' (length=2)
'name_extra_bed' => string '2 взрослых' (length=18)
'room_extra_bed_id' => string '1' (length=1)
'date' => string '21.07 - 31.07' (length=13)
'price' => string '1650' (length=4)
5 =>
array (size=6)
'id' => string '8' (length=1)
'product_id' => string '43' (length=2)
'name_extra_bed' => string '2 взрослых' (length=18)
'room_extra_bed_id' => string '1' (length=1)
'date' => string '01.08 - 31.08' (length=13)
'price' => string '1700' (length=4)
6 =>
array (size=6)
'id' => string '9' (length=1)
'product_id' => string '43' (length=2)
'name_extra_bed' => string '2 взрослых' (length=18)
'room_extra_bed_id' => string '1' (length=1)
'date' => string '01.09 - 30.09' (length=13)
'price' => string '1750' (length=4)
7 =>
array (size=6)
'id' => string '10' (length=2)
'product_id' => string '43' (length=2)
'name_extra_bed' => string '2 взрослых' (length=18)
'room_extra_bed_id' => string '1' (length=1)
'date' => string '01.10 - 31.10' (length=13)
'price' => string '1550' (length=4)
8 =>
array (size=6)
'id' => string '11' (length=2)
'product_id' => string '43' (length=2)
'name_extra_bed' => string '2 взрослых' (length=18)
'room_extra_bed_id' => string '1' (length=1)
'date' => string '01.11 - 30.11' (length=13)
'price' => string '1500' (length=4)
9 =>
array (size=6)
'id' => string '12' (length=2)
'product_id' => string '43' (length=2)
'name_extra_bed' => string '2 взрослых' (length=18)
'room_extra_bed_id' => string '1' (length=1)
'date' => string '01.12 - 31.12' (length=13)
'price' => string '1400' (length=4)
10 =>
array (size=6)
'id' => string '13' (length=2)
'product_id' => string '43' (length=2)
'name_extra_bed' => string '3 взрослых' (length=18)
'room_extra_bed_id' => string '2' (length=1)
'date' => string '01.07 - 10.07' (length=13)
'price' => string '1750' (length=4)
11 =>
array (size=6)
'id' => string '14' (length=2)
'product_id' => string '43' (length=2)
'name_extra_bed' => string '3 взрослых' (length=18)
'room_extra_bed_id' => string '2' (length=1)
'date' => string '11.07 - 20.07' (length=13)
'price' => string '1800' (length=4)
12 =>
array (size=6)
'id' => string '15' (length=2)
'product_id' => string '43' (length=2)
'name_extra_bed' => string '3 взрослых' (length=18)
'room_extra_bed_id' => string '2' (length=1)
'date' => string '21.07 - 31.07' (length=13)
'price' => string '1850' (length=4)
13 =>
array (size=6)
'id' => string '16' (length=2)
'product_id' => string '43' (length=2)
'name_extra_bed' => string '3 взрослых' (length=18)
'room_extra_bed_id' => string '2' (length=1)
'date' => string '01.08 - 31.08' (length=13)
'price' => string '1900' (length=4)
14 =>
array (size=6)
'id' => string '17' (length=2)
'product_id' => string '43' (length=2)
'name_extra_bed' => string '3 взрослых' (length=18)
'room_extra_bed_id' => string '2' (length=1)
'date' => string '01.09 - 30.09' (length=13)
'price' => string '1850' (length=4)
15 =>
array (size=6)
'id' => string '18' (length=2)
'product_id' => string '43' (length=2)
'name_extra_bed' => string '3 взрослых' (length=18)
'room_extra_bed_id' => string '2' (length=1)
'date' => string '01.10 - 31.10' (length=13)
'price' => string '1700' (length=4)
16 =>
array (size=6)
'id' => string '19' (length=2)
'product_id' => string '43' (length=2)
'name_extra_bed' => string '3 взрослых' (length=18)
'room_extra_bed_id' => string '2' (length=1)
'date' => string '01.11 - 30.11' (length=13)
'price' => string '1650' (length=4)
17 =>
array (size=6)
'id' => string '20' (length=2)
'product_id' => string '43' (length=2)
'name_extra_bed' => string '3 взрослых' (length=18)
'room_extra_bed_id' => string '2' (length=1)
'date' => string '01.12 - 31.12' (length=13)
'price' => string '1600' (length=4)
Из этих данных необходимо построить таблицу вида
Спасибо за помощь)