_only 发表于 2023-1-17 19:35:35

使用implode()函数将数组转换成一个新字符串

使用implode()函数将数组转换成一个新字符串


<?php
      $str=array(计算机,论坛,网址,"www.hrefspace.com");
        echo implode(" ",$str);
?>



执行结果:
计算机 论坛 网址 www.hrefspace.com

nihaolai 发表于 2023-2-17 21:12:50

好好好好好好好好好好好好好好好好好顶
页: [1]
查看完整版本: 使用implode()函数将数组转换成一个新字符串