fork download
  1. <?php
  2.  
  3. $arr = array(1,2,3,4,5,6,7,8,9,10);
  4. $get = array(0, 3,5,7);
  5. print_r(array_diff($arr, $get));
Success #stdin #stdout 0.03s 25612KB
stdin
Standard input is empty
stdout
Array
(
    [0] => 1
    [1] => 2
    [3] => 4
    [5] => 6
    [7] => 8
    [8] => 9
    [9] => 10
)