SyntaxFix
Write A Post
Hire A Developer
Questions
You can use implode to return your array with a string separator.
$withComma = implode(",", $array); echo $withComma; // Will display apple,banana,orange