I need to concatenate an indeterminate number of strings, and I would like a space in between two adjoining strings. Like so a b c d e f.
a b c d e f
Also I do not want
considering that you have all these strings collected into an array, a way to do it could be trough a foreach sentence like:
$res = ""; foreach($strings as $str) { $res.= $str." "; } if(strlen($res > 0)) $res = substr($res,-1);
in this way you can have control over the process for future changes.