fork(2) download
  1. <?php
  2.  
  3. $bills = array(
  4. 100 => 23,
  5. 500 => 5,
  6. 1000 => 0,
  7. 5000 => 200);
  8.  
  9.  
  10.  
  11. for($z = 0; $z <= count($bills);$z++) {
  12. if($bills[$z] = 0){
  13. unset($bills[$z]);
  14. }
  15. }
  16.  
  17. echo $bills[2];
Time limit exceeded #stdin #stdout 5s 4943872KB
stdin
Standard input is empty
stdout
Standard output is empty