Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php get values that exist in both arrays

$a=["a","b","c","d","e"];
$b=["d","e","f","g"];
$inBothAndB = array_intersect($a, $b); // Array([3] => d [4] => e) 
 
PREVIOUS NEXT
Tagged: #php #values #exist #arrays
ADD COMMENT
Topic
Name
8+2 =