title: Get attributes and its values using single Collection in Magento?
body: <p>How to get attributes and its values using single Collection in Magento?
  Right now i am using below</p>
  
  <pre>
  <code>$attributesInfo = Mage::getResourceModel('eav/entity_attribute_collection')
                    ->setEntityTypeFilter(4)
                    ->addFieldToFilter('frontend_input','multiselect')
                    ->addSetInfo()
                    ->getData();</code> 
  </pre>
  
  <p>to get attribute and below code to get attribute value</p>
  
  <pre>
  <code>
  $product = Mage::getModel('catalog/product');
  $collection = Mage::getResourceModel('eav/entity_attribute_collection')
                  ->setEntityTypeFilter($product->getResource()->getTypeId())
                  ->addFieldToFilter('attribute_code', $attributeName);
  </code>
  </pre>
  
  <p>My attributes code out put is like below</p>
  
  <pre>
   <code>
    Color :
     Black
     Blue
     Green
  
   Brand :
     Hp
     Dell
     Apple
  
   Size :
    12
    14
    16
  
   </code>
  </pre>
  
  <p>Thanks,</p>
  
  <p>Balan</p>