[PHP] unexpected array_diff output

2004-04-30 Thread Frederic Noyer
Hello there ! I am trying to fill and then compare two arrays: one filled by a foreach construct, and the second by a while construct. I check both with a print_r to be sure that both are correctly filled (which seems to be the case). But then, when I try to compare them with a array_diff ,

Re: [PHP] Re: unexpected array_diff output

2004-04-30 Thread Frederic Noyer
On 30 avr. 04, at 11:00, Torsten Roehr wrote: Frederic Noyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello there ! I am trying to fill and then compare two arrays: one filled by a foreach construct, and the second by a while construct. I check both with a print_r to be sure

Re: [PHP] Re: unexpected array_diff output

2004-04-30 Thread Frederic Noyer
On 30 avr. 04, at 11:00, Torsten Roehr wrote: I think this is correct because the 3 key/value pairs from the first array are NOT in the second one. I think the combination of key and value are relevant for array_diff(). As I have understand only the array_diff_assoc function does that. see

Re: [PHP] Re: unexpected array_diff output

2004-04-30 Thread Frederic Noyer
On 30 avr. 04, at 11:31, Torsten Roehr wrote: Frederic Noyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 30 avr. 04, at 11:00, Torsten Roehr wrote: I think this is correct because the 3 key/value pairs from the first array are NOT in the second one. I think the combination

Re: [PHP] unexpected array_diff output

2004-04-30 Thread Frederic Noyer
On 30 avr. 04, at 12:11, Ford, Mike [LSS] wrote: On 30 April 2004 09:47, Frederic Noyer wrote: Hello there ! I am trying to fill and then compare two arrays: one filled by a foreach construct, and the second by a while construct. I check both with a print_r to be sure that both