I have a multidimensional array and I would like display the values in a table.
Here is the code:
$attributes = [
    [
        "attributeName"=> "Name",
        "value"=> "Paul"
    ],
    [
        "attributeName"=> "Name",
        "value"=> "Steve"
    ],
    [
        "attributeName"=> "Name",
        "value"=> "John"
    ],
    [
        "attributeName"=> "Name",
        "value"=> "Andrew"
    ],
    [
        "attributeName"=> "Destination",
        "value"=> "London"
    ],
    [
        "attributeName"=> "Destination",
        "value"=> "Paris"
    ],
    [
        "attributeName"=> "Destination",
        "value"=> "Ankara"
    ],
    [
        "attributeName"=> "Destination",
        "value"=> "Kuwait"
    ],
];
I would like the output to be on a table with the thead being Name And Destination and the while the td being the values of Name and Destinations.
Or this
Name: Paul,Steve,John,Andrew
Destination: London,Paris,Ankara,Kuwait
 
    