title: how to get the attribute group in magento
body: <p>I need to get the attribute group of a certain attribute set , how can i do this ?</p>
  
  <p>i think i got the attribute group id but i can't seem to get the attributes of that group.</p>
  
  <pre><code>    $attributes = $_product-&gt;getAttributes();
  
      foreach($attributes as $attribute)
      {
      $group_id =  $attribute-&gt;getData('attribute_set_info/' . $_product-&gt;getAttributeSetId() . '/group_id'); 
      print_r($group_id);          
  
      }  
  </code></pre>
  
  <p>I would really appreciate if somebody could help me out , thanx ;)</p>