PHP ??和?:区别

?? 相当于 isset()  变量为空也返回true

?: 则会同时判断isset() 和 是否为空

posted @ 2023-04-23 15:17  低调灬哥  阅读(39)  评论(0编辑  收藏  举报