Display the drop-down list

array_intersect_assoc()

« array_intersect | array_intersect_key »
<?php
$array 
array_intersect_assoc (
    
// array $array1
    
  // array $array2
);
?>
Result
$array = [
  
'a' => 'green',
]
Examples
#1 array_intersect_assoc  (["a" => "green""b" => "brown""c" => "blue"=> "red"],
 [
"a" => "green"=> "yellow"=> "red"])
#2 array_intersect_assoc  ([=> 0=> 1=> 2],
 [
=> "00"=> "01"=> "2"])
See also
array_diff, array_diff_assoc, array_intersect, array_intersect_uassoc, array_uintersect_assoc, array_uintersect_uassoc