Re: [PHP] Please help with array_diff()

2002-08-09 Thread Jason Wong
On Saturday 10 August 2002 01:50, Gandalf wrote: > Well of course $foo[0] contains the first dimension of the $foo array and > the same goes for $bar[0]. The first rule of debugging is not to assume anything. Perhaps I should've phrased my question better: "Print out the damn things and see wh

Re: [PHP] Please help with array_diff()

2002-08-09 Thread Stig Venaas
On Fri, Aug 09, 2002 at 07:50:46PM +0200, Gandalf wrote: > Well of course $foo[0] contains the first dimension of the $foo array and > the same goes for $bar[0]. > > It is still not working as it should, i am close to going nuts. If I understood you correctly, there is no element 0 in $foo and

Re: [PHP] Please help with array_diff()

2002-08-09 Thread Gandalf
Well of course $foo[0] contains the first dimension of the $foo array and the same goes for $bar[0]. It is still not working as it should, i am close to going nuts. At 11:43 09.08.2002 +0800, you wrote: >On Friday 09 August 2002 06:14, Gandalf wrote: > > > > > $diff = array_diff($foo[0], $bar[0

Re: [PHP] Please help with array_diff()

2002-08-08 Thread Jason Wong
On Friday 09 August 2002 06:14, Gandalf wrote: > > $diff = array_diff($foo[0], $bar[0]); What does $foo[0] and $bar[0] contain? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Develop