把数组元素组合为字符串 <?php$arr = array('Hello','World!','I','love','Shanghai!');echo implode(" ",$arr);?> Hello World! I love Shanghai!