I've a multi-select attribute color.
$color = $_product->getAttributeText('color');
$output = implode(',', $color);
echo $output;
$color gives an array value. If there are multiple values present for the color attribute, say 1. blue and 2. green, it prints blue,green but when only one attribute is present for $color (say blue), it doesn't print any thing.
Is that the normal behaviour of implode? There must be multiple values present in array? If not then how I can print those single present values?