For an array like the one below; what would be the best way to get the array values and store them as a comma-separated string?
Array ( [0] => 33160,
Using implode(), you can turn the array into a string.
$str = implode(',', $array); // 33160,33280,33180,...