Inplode PHP
$arr = array('Hello','World!','Beautiful','Day!');
echo implode(" ",$arr);
William Valverde
$arr = array('Hello','World!','Beautiful','Day!');
echo implode(" ",$arr);
$arr = array('Hello','World!','Beautiful','Day!');
echo implode(" ",$arr);
// Outputs: 'Hello World! Beautiful Day!'
$colors = array("red","blue","green");
$colorsCSV= "'".implode("','",$colors)."'";
//$colorsCSV: 'red','blue','green'