日期:2013-05-05 浏览次数:20452 次
<?$colon_separated = implode(",", $array); //用逗号将array数组组合成字符串,注意sql后的结果不能使用此方法?>
<?$pizza = "1,2,3,4,5";$pieces = explode(",", $pizza); //将pizza字符串依据逗号切开,返回值为数组.?>