Answers for "get simmilar values once in php from different arrays"

PHP
0

php find multiple value in array

$haystack = array(...);

$target = array('foo', 'bar');

if(count(array_intersect($haystack, $target)) == count($target)){
    // all of $target is in $haystack
}
Posted by: Guest on October-04-2021

Code answers related to "get simmilar values once in php from different arrays"

Browse Popular Code Answers by Language