PHP Comparing 2 Arrays For Existence of Value in Each
- by Dr. DOT
I have 2 arrays. I simply want to know if one of the values in array 1 is present in array 2. Nothing more than returning a boolean true or false
Example A:
$a = array('able','baker','charlie');
$b = array('zebra','yeti','xantis');
Expected result = false
Example B:
$a = array('able','baker','charlie');
$b =…