Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #find #multiple #array
ADD COMMENT
Topic
Name
1+2 =