I am trying to see if a vin number exist in an array with no luck. Here is my array structure -
$vin[] = array($data);
Array ( [0] => Array ( [0] => 1C6RR7FG2JS178810 ) [1] => Array ( [0] => 1C6RR7FG2JS178810 ) [2] => Array ( [0] => 1C6RR7FG2JS178810 ) [3] => Array ( [0] => 1C6RR7FG2JS178810 )
And method for checking the array using in_array -
if (in_array("1C6RR7FG2JS178810", $vin)){
echo "found";
}else{
echo "not found";
}
But shows not found every time even though I know it does exist. Where am I going wrong?