Simple attribute coding question...

Guess this will be a simple one for somebody who knows what they are doing. I have added a new attribute that lists kitchen appliances like this...

Kitchen Appliances: Washing Machine Dishwasher Hob Fridge
ideally though it should have comas so looks like this
Kitchen Appliances: Washing Machine, Dishwasher, Hob, Fridge,

the code I am using is
if($kitchen_appliances) $propertyFeaturesList[]=t('Kitchen Appliances: ').$kitchen_appliances;

Any clues how I add a , to this code as I can't figure it out!!!

Thanks in advance.

View Replies:
JohntheFish replied on at Permalink Reply
Maybe what you want is implode:
$list_with_commas = implode(' ,', $array_of_strings);