1.结论
①explode
explode( string $delimiter, string $string[, int $limit = PHP_INT_MAX] ) : array
分割字符串到数组
②implode
数组元素组合为一个字符串
implode( string $glue, array $pieces) : string
implode( array $pieces) : string
2.实例
前提:
(1)本地机器安装XAMPP,下载地址如下
https://www.apachefriends.org/index.html
(2)启动Apache
①explode
②implode