??是php7 新增符號(hào) 其作用近似于三目運(yùn)算符 ?: 但是存在著細(xì)微差別 示例代碼如圖: 圖片.png $b = $a?$a:2; 三目運(yùn)算 <=> 圖片.png $e = $a??'how much?'; <=> 圖片.png