구매고객
판매자
솔루션별 질문
if ($bo_table == 'free') { define('BOARD', 2); }
이렇게되어있는 되어있는걸 2개 더 추가해주고싶은데
if ($bo_table == 'free', 'qna', 'profile') {
이런식으로 해야되나요?
if (in_array($bo_table, array('free', 'qna', 'profile')) {
if (in_array(['free', 'qna', 'profile'], $bo_table) { define('BOARD', 2); }
swich( $bo_table) {
case 'free':
case 'qna':
case 'profile':
// 원하시는 내용
}
if ($bo_table == 'free' || $bo_table == 'qna' || $bo_table == 'profile') {
답변을 작성하려면 로그인이 필요합니다.
광고가 아닌 글을 신고하면 회원님의 신고 권한이 제한될 수 있습니다. 신중하게 신고해 주세요.