RE: [PHP] RE: Function to compare an array with another array

2001-03-15 Thread Tim Ward
1 14:03 > To: Tim Ward; 'Jimmy Bäckström'; PHP General List > Subject: RE: [PHP] RE: Function to compare an array with another array > > > Hi, > I am trying to use the Function ArrayCompare, but it always > has an error in > "if(($key = array_search($element, $

RE: [PHP] RE: Function to compare an array with another array

2001-03-15 Thread Stewart Taylor
ot;, "yellow", "red"); $result = array_diff ($array1, $array2); This makes $result have array ("blue"); -Original Message- From: Fang Li [mailto:[EMAIL PROTECTED]] Sent: 15 March 2001 14:03 To: Tim Ward; 'Jimmy Bäckström'; PHP General List

RE: [PHP] RE: Function to compare an array with another array

2001-03-15 Thread Fang Li
Hi, I am trying to use the Function ArrayCompare, but it always has an error in "if(($key = array_search($element, $array2)) == false)", and also I couldn't get the page of http://www.stivesdirect.com/e-mail-disclaimer.html Would you please give me a clue? Thanks! Fang -Original Message-