Created
April 12, 2013 08:17
-
-
Save iolloyd/5370421 to your computer and use it in GitHub Desktop.
intersection finding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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