From http://developer.51cto.com/art/200911/164903.htm
implode() 函数是用来数组转字符串时用,而explode() 函数则是用来处理字符串转数组的 http://www.w3school.com.cn/php/func_string_explode.asp http://www.w3school.com.cn/php/func_string_implode.asp
// implode() 函数
<?php
$vegetables[0] = "corn";
$vegetables[1] = "broccoli";
$vegetables[2] = "zucchini";
$text = implode(",", $vegetables);
echo $text;
?>
//运行结果
//corn,broccoli,zucchini
// explode() 函数
<?php
$text = "corn, broccoli, zucchini";
$vegetables = explode(", ", $text);
print_r($vegetables);
?>
//运行结果
/*
Array
(
[0] => corn
[1] => broccoli
[2] => zucchini
)
*/