This snippet returns the list of attribute options for a given attribute in Magento.

In the example below, the label corresponding to each option is printed (one per line) for the attribute “size”.

include_once 'app/Mage.php';
Mage::setIsDeveloperMode(true);
$storeId   = 1;
$config    = Mage::getModel('eav/config');
$attribute = $config->getAttribute(Mage_Catalog_Model_Product::ENTITY, 'size');
$values    = $attribute->setStoreId($storeId)->getSource()->getAllOptions();
foreach ($values as $label) {
	echo $label['label'] . PHP_EOL;
}