PHP 조건부 연산자

Jmnote bot (토론 | 기여)님의 2020년 11월 2일 (월) 02:56 판 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))

1 개요

PHP conditional operator, PHP ternary operator
PHP 조건부 연산자, PHP 삼항 연산자
$score = 50;
$grade = $score > 80 ? 'A' : 'B';
echo $grade;
# B

2 같이 보기

3 참고

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