Q: array intersection problem
| From: | Joe Rice | Date: | Tue, 14 Aug 2001 17:57:34 +0000 |
| Subject: | Q: array intersection problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-62679@lists.php.net to get a copy of this message | ||
hi,
i have two arrays that i would like
to find the intersection and at
this intersection alter the value.
$invalid = array("1","3","9");
$questions =
array("1","2","3","4","5","6","7","8","9");
and i would like the result to be an new array that looks
like this:
$new_questions = array("<font color=red>1</font>",
"2",
"<font color=red>3</font>",
"4","5","6","7","8",
"<font color=red>4</font>");
thank you in advance,
joe