<?php
$tests = array(
array('ID'=>1),
array('ID'=>2),
array('ID'=>3),
array('ID'=>4),
array('ID'=>5),
array('ID'=>6)
);
$_POST['testSelect'] = 3;
?>
<?php
foreach ($tests as $test){
echo $test['ID']."<br>"; //output 1 2 3 4 5 6
echo $_POST['testSelect'].'<br>'; //output 3 3 3 3 3 3
if($test['ID'] == $_POST['testSelect']){ //which 3 mataches 3
echo 'match';
}
}
?>