Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php array_intersect

<?php
    $array1 = array("a" => "verde", "vermelho", "azul");
    $array2 = array("b" => "verde", "amarelo", "vermelho");
    $result = array_intersect($array1, $array2);
    print_r($result); // Array ( [a] => verde [0] => vermelho ) 
?>
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php
ADD COMMENT
Topic
Name
7+7 =