php 값 따라 클래스 주기

php 값 따라 클래스 주기

"> 0) ? $thisHTML : "";?>

: total_day가 >0이면 event 라는 클래스를 주고 아니면 빈칸으로 둬라

">

if랑 else일 때에만 축약형으로 쓸 수 있고 조건이 3가지일 때는 풀어서 써줘야 함

from http://amanda.tistory.com/34 by ccl(A) rewrite - 2021-11-09 11:00:28