php배열 else if문 코드간소화
본문
$tableList = ['notice','event','cs','aft','media','rss'];
//중략
<?php }else if( $bo_table==$tableList[0] || $bo_table==$tableList[1] || $bo_table==$tableList[2] || $bo_table==$tableList[3] || $bo_table==$tableList[4] || $bo_table==$tableList[5]){ ?>
코드 어떻게 줄일수있을까요..
!-->
답변을 작성하시기 전에 로그인 해주세요.