Answers for "php get all array values as one string"

PHP
6

php implode

$colors = array("red","blue","green");
$colorsCSV= "'".implode("','",$colors)."'";
//$colorsCSV: 'red','blue','green'
Posted by: Guest on November-27-2019

Code answers related to "php get all array values as one string"

Browse Popular Code Answers by Language