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++; $z <= count($bills)) {
  12. if($bills[$z] == 0){
  13. unset($bills[$z]);
  14. }
  15. }
  16.  
  17. echo $bills[2];
Success #stdin #stdout #stderr 0.01s 82880KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Notice:  Undefined offset: 2 in /home/uLJPhT/prog.php on line 17