php array to string comma separated and as string code example
Example 1: how to convert array to string with commas in php
$string = implode(', ', $tags);
Example 2: php change array into comma delimited string
$tags = implode(', ', array('tag1','tag2','tag3','tag4'));