PHP7 新写法

$a ?? 0 等同于 isset($a) ? $a : 0。
$a ?: 0 等同于 $a ? $a : 0。

  

原文地址:https://www.cnblogs.com/caijiqi190731/p/15473958.html