php convert comma separated array to indexed array 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'));