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
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
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
3 matches
Mail list logo