php7 中?? 和 ?:的区别

$b = $a?? $c ;相当于$b= isset($a)?$a:$c;

$b = $a?: $c ;则是 $b = !empty($a) ? $a:$c;

原文地址:https://www.cnblogs.com/maidongdong/p/10448309.html