Here is my array from the loop
(
    [Size] => Array
        (
            [07601-01] => S,
            [07601-02] => M,
            [07601-03] => L,
            [07601-04] => XL,
            [07601-05] => XXL,
        )
    [other] => Array
        (
            [07601-01] => S,
            [07601-02] => M,
            [07601-03] => L,
            [07601-04] => XL,
            [07601-05] => XXL,
        )
)
Here is my loop
<?php 
     foreach($product_atttribute as $attr) { 
?>
Size
- S
- M
- XL
other .....etc
<?php 
  } 
?>
In the above loop how can I get the Size, other, etc as the heading like below
 
     
     
     
    