Hello all,
I have the code below that compares the values specified in $array_list with certain values stored in $email1 –> $email16. Only the results that aren’t contained in both $array_list and $array_1 are displayed in the “echo” command. Right now, the results are just displayed on one line with a comma between the results. What I would like to do is have all the results displayed in one dropdown box where each result is on a different line within the one dropdown box. And help would be greatly appreciated.
Thanks,
Cedric
<?
$array_list = array(‘1′,’2′,’3′,’4′,’5′,’6′,’7′,’8′,’9′,’10’,’11’,’12’,’13’,’14’,’15’,’16’);
$array_1 = array($email1, $email2, $email3, $email4, $email5, $email6, $email7, $email8, $email9, $email10, $email11, $email12, $email13, $email14, $email15, $email16);
echo implode(‘,’, array_diff($array_list, $array_1));
?>