How do I check all the values in one array against all the values in another array?
If any values in
$row_Comments['id'] == any values in $row_Posts['id']
I could figure it out with a while statement, but a little confusing for me. And I'm sure there is a simple way.
RR
How to see if any values in array equal any values in anthr?
Moderator: General Moderators
another function
while looping through one array you can compare that value to the other using
http://www.php.net/manual/en/function.in-array.php
phpScott
http://www.php.net/manual/en/function.in-array.php
phpScott