1 $price = (floatval($price))?intval(floatval($price)*100)/100:0; 转载于:https://www.cnblogs.com/zongsir/p/10282396.html