"checking to see if one array's elements are in another array in php" Answer’s


You can use array_intersect().

$result = !empty(array_intersect($people, $criminals));
Wednesday, March 31, 2021
answered 11 Months ago
Only authorized users can answer the question. Please sign in first, or register a free account.
Not the answer you're looking for? Browse other questions tagged :