摘要: $c = $a ?: $b; 等效于 $c = $a ? $a : $b; $c = $a ?? $b; 等效于 $c = isset($a) ? $a : $b; 示例: $a = null; $b = 'b'; $c = $a ?: $b; // b $c = $a ?? $b; // b $a 阅读全文
posted @ 2022-11-13 21:42 幽篁晓筑 阅读(133) 评论(0) 推荐(1) 编辑