Re: [PHP] comparing two arrays

2003-07-02 Thread Shena Delian O'Brien
Michael A Smith wrote: Look at array_diff() (http://php.net/array_diff). That ought to do what you want. Yes! Thank you :) -Michael On Wed, 2003-07-02 at 10:15, Shena Delian O'Brien wrote: Hi - I have two arrays that need to be compared. I need to know if their values match or not. Currently I

[PHP] comparing two arrays

2003-07-02 Thread Shena Delian O'Brien
Hi - I have two arrays that need to be compared. I need to know if their values match or not. Currently I have: $array1 = array(a, b, c, d); $array2 = array(c, d, e, f, g); $intersect = array_intersect($array1,$array2); $num1 = count($array1); $n

[PHP] comparing two arrays in PHP3

2001-01-16 Thread Maurice Rickard
As my "learn PHP" project, I'm setting up a version of my site to use it. So far, so good. I'm working on a relational system to handle what sections of my site go where in a hierarchy. I'm able to add new rows to a table that relates categories to kinds of content. That works fine, but my