fork download
  1. <?php
  2.  
  3. $arr = Array(0 => 22017, 1 => 160270, 2 => 2, 3 => 62017, 4 => 135026, 5
  4. => 82017, 6 => 150154);
  5.  
  6. $arr_filtrado = array_filter($arr, function($elemento){
  7. return $elemento > 999;
  8. });
  9.  
  10. print_r($arr_filtrado);
Success #stdin #stdout 0s 82880KB
stdin
Standard input is empty
stdout
Array
(
    [0] => 22017
    [1] => 160270
    [3] => 62017
    [4] => 135026
    [5] => 82017
    [6] => 150154
)