I am using the following to display image icons to represent the operating systems of a device.
<?php if($_product->getoperating_system()): ?><li><?php $os=$_product->getAttributeText('operating_system');
$osid=$_product->getoperating_system();
echo '<a href="/catalogsearch/advanced/result/?operating_system%5B%5D='.str_replace(' ', '_',$osid).'"><img class="specicon" src="/media/avenueimages/icons/'.str_replace(' ', '_',$os).'.png" alt="'.$os.'" title="'.$os.'"></a><p>'.$os.'</p>' ;?></li><?php endif; ?>
I would like to do the same with a multiple select attribute.
This code displays the attribute value ids:
<?php echo $_product->getData('printer_functions'); ?>
How do I modify the first code to display an icon for each selected value?