Answers for "php concat array to string"

PHP
5

php implode array

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

join array of strings php

$arr = array('Hello','World!','Beautiful','Day!');
echo join(",",$arr);
Posted by: Guest on April-05-2020
0

join string php

<?php
$arr = array('Hello','World!','Beautiful','Day!');
echo join(" ",$arr);
?>
Posted by: Guest on April-09-2020

Browse Popular Code Answers by Language