fork(3) download
  1. <?php
  2. $array1 = array(5,10, 50, 80, 40, 90);
  3. $array2 = array(5,10, 30, 10, 40, 20);
  4. $array3 = array(5,10, 60, 15, 40, 30);
  5. $array4 = array(5,20, 30, 40, 10, 50);
  6. $array5 = array(5,10, 05, 10, 90, 40);
  7.  
  8. $values = array_intersect($array1,$array2,$array3,$array4,$array5);
  9. print_r($values);
Success #stdin #stdout 0s 52488KB
stdin
Standard input is empty
stdout
Array
(
    [0] => 5
    [1] => 10
    [4] => 40
)