mysql | Using explode and in_array
페이지 정보
작성자 zero 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일18-10-22 14:10 조회168회 댓글0건관련링크
본문
$str_array = explode(",", "one, two, three, four, five");
$find = 'one';
if(in_array($find,$str_array)){
echo "TRUE";
}
else
{
echo "FALSE";
}
댓글목록
등록된 댓글이 없습니다.