php里??和?:的区别

http://ju.outofmemory.cn/entry/362133

$c=$a??$b;等同于 $c=isset($a)?$a:$b; 
$c=$a?:$b;等同于 $c=$a?$a:$b;

    A+
发布日期:2019年03月17日  所属分类:未分类

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: