技巧 1、字符串处理 $colon_separated = implode(",", $array); //用逗号将array数组组合成字符串,注意sql后的结果不能使用此方法?> $pizza = "1,2,3,4,5";$pieces = explode(",", $pizza); //将pizza字符串依据逗号切开,返回值为数组.?>