php array join to string code example
Example 1: php array join
$arr = array('Hello','World!','Beautiful','Day!');
echo join(", ",$arr);
Example 2: php implode array
$values = array_map('array_pop', $array);
$imploded = implode(',', $values);
Example 3: join array of strings php
$arr = array('Hello','World!','Beautiful','Day!');
echo join(",",$arr);
Example 4: join string php
<?php
$arr = array('Hello','World!','Beautiful','Day!');
echo join(" ",$arr);
?>