implode
用字符串连接数组元素
&reftitle.description;
stringimplode
stringseparator
arrayarray
替代写法(不支持命名参数):
stringimplode
arrayarray
遗留写法(从 PHP 7.4.0 起废弃,从 PHP 8.0.0 中移除):
stringimplode
arrayarray
stringseparator
用一个 separator 字符串连接数组元素。
&reftitle.parameters;
separator
可选。默认为空字符串。
array
要使用字符串连接的数组。
&reftitle.returnvalues;
返回一个包含所有数组元素并且顺序相同的字符串,
每个元素之间有 separator 分隔。
&reftitle.changelog;
&Version;
&Description;
8.0.0
在 array 之后传递 separator 已不再支持。
7.4.0
在 array 之后传递 separator (即:使用遗留写法)已被废弃。
&reftitle.examples;
implode 例子
]]>
&reftitle.notes;
¬e.bin-safe;
&reftitle.seealso;
explode
preg_split
http_build_query