"; // 数组元素为 2 print_r(explode(',',$str,2)); print "
"; // 删除最后一个数组元素 print_r(explode(',',$str,-1));