Magento: Get One Column or Multiple Column Values from a Collection
Pull just one field, or several, from a Magento collection with getColumnValues() and friends — less memory and cleaner code in every module.
Magento get just one column value or get multiple column values by name
Only want a particular field?
print_r($collection->getColumnValues('name'));
The team at Magento have even given us some rudimentary filtering capabilities.
print_r($collection->getItemsByColumnValue('name','fieldname'));
Further reading: OpenMage, the community-maintained Magento 1 fork. Need a hand? Our Magento development team can help.
