implode 使用一个字符串将数组变成字符串
$comma_separated
= implode(
","
,
$array
);
explode — 使用一个字符串分割另一个字符串,返回一个数组
$pieces
=
explode
(
" "
,
$pizza
);
implode 使用一个字符串将数组变成字符串
$comma_separated
= implode(
","
,
$array
);
explode — 使用一个字符串分割另一个字符串,返回一个数组
$pieces
=
explode
(
" "
,
$pizza
);