확장자를 체크해서 그림파일인지 확인

function ck_exp_arch_board_gallery($poi)
{
 $arr_exp = array('jpg','gif','png');
 $str_exp = strtolower(substr(strrchr($poi, "."), 1));
 $result = array_search ( $str_exp, $arr_exp);
 if($result > -1) { return true; }
 else{ return false; }
 return false;
}

//   $result = ck_exp_arch_board_gallery($파일);

댓글
  • No Nickname
    No Comment
  • 권한이 없습니다.
    {{m_row.m_nick}}
    -
목록형 📅 달력형