Tag: Check if array contains value from another array in PHP
Check if array contains value from another array in PHP
This tutorial will discuss about unique ways to check if an array contains any value from another array in php. Table Of Contents Method 1: Using array_intersect() function Method 2: Using foreach() Summary Method 1: Using array_intersect() function Suppose we have two arrays, and we want to check if the second array contains any value …
Check if array contains value from another array in PHPRead More