Thanks nogdog.
I believe this might work...
<?php
$array = array('val1', 'val2', 'val3');
$outPut = implode(",", $array);
echo $outPut;
?>
However, can an array carry values within (val1, val2 and so on) without putting them in there by hand? In other words - these values within an array need to be declared automatically depending on how DB responds within "while output" string. Moreover, these values are not going to be the same, i.e. it might only be one value (val1) - where would the rest of the values within an array go? Any suggestions? Thanks again.