checking in two arrays ??
Posted: Wed Nov 19, 2008 10:35 pm
Hello forums!!!
Case:
Suppose we have two arrays(returned by queries)
$array1 and $array2 of different sizes for example (two cases here)
a>
b>
I would like to check presence of any values of $array1 in $array2.
How to accomplish this, any ideas.
Thanks in advance for the suggestions.
Case:
Suppose we have two arrays(returned by queries)
$array1 and $array2 of different sizes for example (two cases here)
a>
Code: Select all
$array1 = array(1,2,3);
$array2 = array(1,2);Code: Select all
$array1 = array(1);
$array2 = array(1,2,4,5);How to accomplish this, any ideas.
Thanks in advance for the suggestions.