mysql Using explode and in_array
페이지정보
내용
$str_array = explode(",", "one, two, three, four, five");
$find = 'one';
if(in_array($find,$str_array)){
echo "TRUE";
}
else
{
echo "FALSE";
}
$str_array = explode(",", "one, two, three, four, five");
$find = 'one';
if(in_array($find,$str_array)){
echo "TRUE";
}
else
{
echo "FALSE";
}
댓글이 없습니다