PHP7 中 ?? 与?:的区别LEMPA图文教程标签:PHP, php7来源: 腾讯云Qcloud评测日期: 2019-8-8作者: 腾讯云/服务器VPS推荐评测/Vultr??是PHP7版本的新特性,它与?:的区别在哪里呢? ??$b = $a?? $c ;相当于$b= isset($a)?$a:$c; ?:$b = $a?$a: $c 则是 $b = !empty($a) ? $a:$c;