array_intersect_assoc : Associative Array : Data Structure PHP Source Code


PHP Source Code » Data Structure » Associative Array »

 

array_intersect_assoc




<?php
   $array1 = array("OH" => "Ohio""CA" => "California""HI" => "Hawaii");
   $array2 = array("50" => "Hawaii""CA" => "California""OH" => "Ohio");
   $array3 = array("TX" => "Texas""MD" => "Maryland""OH" => "Ohio");
   $intersection = array_intersect_assoc($array1, $array2, $array3);
   print_r($intersection);
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Data Structure
» Associative Array