Answers for "php join array into string"

PHP
7

php implode

$arr = array('Hello','World!','Beautiful','Day!');
echo implode(" ",$arr);
// Outputs: 'Hello World! Beautiful Day!'
Posted by: Guest on June-16-2020
0

join array of strings php

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

Browse Popular Code Answers by Language