php join("','", x); code example Example: join array of strings php $arr = array('Hello','World!','Beautiful','Day!'); echo join(",",$arr);