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);
1.4m articles
1.4m replys
5 comments
56.9k users