數組轉字符串php
implode數組
$array
=
array
(
'lastname'
,
'email'
,
'phone'
);
code
$comma_separated
= implode(
","
,
$array
);
$pizza
=
"piece1 piece2 piece3 piece4 piece5 piece6"
;
$pieces
=
explode
(
" "
,
$pizza
);