Help! We are trying to exclude elements in the first array from printing when we filter them against the second array. In the conditional statement, if you change the != to ==, it works the opposite way fine.
Cracked out in Columbus...
$bry = array("blue","red", "indigo");
$roygbiv = array("red","orange","yellow","green","blue","indigo","violet");
$bry_count = count($bry);
$roygbiv_count = count($roygbiv);
for ($x = 0; $x <= $bry_count; $x++) {
for ($y = 0; $y <= $roygbiv_count; $y++) {
if ($bry[$x] != $roygbiv[$y]) {
echo $roygbiv[$y];
}
}
}