Hi,
play with array_intersect or array_diff and some other array functions.
http://www.php.net/manual/en/function.array-intersect.php (PHP 4 = 4.0.1)
http://www.php.net/manual/en/function.array-diff.php (PHP 4 = 4.0.1)
- Original Message -
From: Joe Rice [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 2001. augusztus 14. 19:57
Subject: [PHP] Q: array intersection problem
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=red1/font,
2,
font color=red3/font,
4,5,6,7,8,
font color=red4/font);
thank you in advance,
joe
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]