Newbie Question: Array Comparison ---
| From: | Jeremy Moles | Date: | Thu, 20 Sep 2001 04:37:07 +0000 |
| Subject: | Newbie Question: Array Comparison --- | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-67924@lists.php.net to get a copy of this message | ||
This is a simple question, but I'm having trouble figuring out a solution.
Let's say I have 2 arrays:
$DoNotPrint=array("a","b","c");
$Foo=array("c","d","e"):
What is the best way to print every value in $Foo that does NOT match a
value in $DoNotPrint? For instance, in this example, "c" should not be
print.