I am using Magento 1.9.3.6 version.
I have an attribute called `brand`.
I want to get `brand` attribute's values collection by filter.
[![brand attribute][1]][1]
I have tried the following code:
$attributeId = Mage::getResourceModel("eav/entity_attribute")->getIdByCode("catalog_product","brand");
$attribute = Mage::getModel("catalog/resource_eav_attribute")->load($attributeId);
$attributeOptions = $attribute ->getSource()->getAllOptions()->addAttributeToFilter("value", "brand");
But it shows error.
How to get attribute values as array filter by brand values.
[1]: https://i.sstatic.net/zd9rA.png