三元

$price = ($price > 0) ? $price : 0;
原文地址:https://www.cnblogs.com/pansidong/p/9307879.html