php string join array code example
Example 1: php implode
$colors = array("red","blue","green");
$colorsCSV= "'".implode("','",$colors)."'";
//$colorsCSV: 'red','blue','green'
Example 2: join array of strings php
$arr = array('Hello','World!','Beautiful','Day!');
echo join(",",$arr);
Example 3: arry to string php
implode("|",$type);