I am trying to compare two arrays and return a list of the values in $allsubs that are NOT in $foundsublist
lets say that
$allsubs = 5555555,1025577122,1021099271
and
$foundsublist = 1025577122,1021099271
I need to like that 5555555 WAS NOT FOUND.
According to the manual, I should use:
$notfound = array_diff($allsubs, $foundsublist);
But this tells me that NONE of my numbers were found.
My code is below....any help would be appreciated!
Ajna
##############################
$notfound = array_diff($allsubs, $foundsublist);
if (($notfoundcount <= 0) && ($notfound[0] == ""))
{
$error_message = "All subscription numbers utilized";
}
else
{
$error_message = "The following subscription numbers cannot be found in database.<br><br>";
}
echo $error_message;
foreach($notfound as $i){
echo $i;
echo "<br>";}