How do I merge all the array items into a single string?
Use the implode function.
implode
For example:
$fruits = array('apples', 'pears', 'bananas'); echo implode(',', $fruits);
548k questions
547k answers
4 comments
86.3k users