1$array = array('banana', 'strawberry', 'apple');
2comma_separated = implode(",", $array);
3echo comma_separated; // banana,strawberry,apple
1$arr = array('Hello','World!','Beautiful','Day!');
2echo implode(" ",$arr);
3// Outputs: 'Hello World! Beautiful Day!'
1$colors = array("red","blue","green");
2$colorsCSV= "'".implode("','",$colors)."'";
3//$colorsCSV: 'red','blue','green'