Hi All. Newb question for you...
This returns "Match Found"
/////
$numbers = array(1,2,3,4);
if (in_array(3,$numbers))
{
echo "Match found";
}
else
{
echo "Match not found";
}
///////
But if I want $numbers as a variable... I get Match Not Found
$get = "1,2,3,4";
$numbers = array($get);
if (in_array(3,$numbers))
{
echo "Match found";
}
else
{
echo "Match not found";
}
Any help/advice would be greatly appreciated.