去除最后的逗号substr_replace($update_sql ,"",-1);去除最后的and substr_replace($update_sql ,"",-3); 转载于:https://www.cnblogs.com/zonehoo/p/8370877.html