daemonkin
08-07-2007, 10:07 AM
Looking for a function if one exists that can compare 2 arrays and tell me the elements that are the same in each.
My array example is:
Array
(
[0] => Array
(
[word] => the
[nav] => Array
(
[0] => 1
[1] => 3
[2] => 7
)
[sub] => Array
(
[0] => 1
[1] => 2
)
)
[1] => Array
(
[word] => char
[nav] => Array
(
[0] => 1
[1] => 3
)
)
[nav] => Array
(
[0] => 1
[1] => 3
[2] => 7
)
)
I am looking for similar numbers in the sub array ['nav'] and in the case above the results should be 1 and 3.
Can anyone help?
D.
My array example is:
Array
(
[0] => Array
(
[word] => the
[nav] => Array
(
[0] => 1
[1] => 3
[2] => 7
)
[sub] => Array
(
[0] => 1
[1] => 2
)
)
[1] => Array
(
[word] => char
[nav] => Array
(
[0] => 1
[1] => 3
)
)
[nav] => Array
(
[0] => 1
[1] => 3
[2] => 7
)
)
I am looking for similar numbers in the sub array ['nav'] and in the case above the results should be 1 and 3.
Can anyone help?
D.