Null 합체 연산자

Jmnote (토론 | 기여)님의 2023년 5월 24일 (수) 01:13 판

1 개요

null coalescing operator, Logical Defined-Or operator
Null 합체 연산자
??

2 Bash

TITLE=${supplied_title:-'Default title'}

3 C#

string pageTitle = suppliedTitle ?? "Default Title";

4 PHP

$pageTitle = $suppliedTitle ?? 'Default Title';

5 같이 보기

6 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}