Skip to content

Instantly share code, notes, and snippets.

@iolloyd
Created April 12, 2013 08:17
Show Gist options
  • Save iolloyd/5370421 to your computer and use it in GitHub Desktop.
Save iolloyd/5370421 to your computer and use it in GitHub Desktop.
intersection finding
<?php
$a = array("a" => "one", "two", "three");
$b = array("b" => "two", "three", "four");
$c = array("c" => "three", "four", "five");
$result = array_intersect($a, $b, $c);
print_r($result);
?>
Array
(
[1] => three
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment