Answers for "array to implode php"

PHP
12

implode php

$array = array('banana', 'strawberry', 'apple');
comma_separated  = implode(",", $array);
echo comma_separated; // banana,strawberry,apple
Posted by: Guest on October-26-2020
5

php implode array

$values = array_map('array_pop', $array);
$imploded = implode(',', $values);
Posted by: Guest on March-03-2020

Browse Popular Code Answers by Language