fork(1) download
  1. <?php
  2.  
  3. $array = array('40631','40626','40622','40633','59632','54828');
  4.  
  5. $conta = 0;
  6.  
  7. foreach($array as $item){
  8. if($item >= 50000) $conta++;
  9. }
  10.  
  11. echo $conta; // retona 2
  12.  
Success #stdin #stdout 0.01s 23664KB
stdin
Standard input is empty
stdout
2