fork(3) download
  1. <?php
  2.  
  3. $heightKid = 169;
  4. $numberHeight = 0;
  5.  
  6. $classmatersHeight = array
  7. (
  8. `Anton` => 169,
  9. `Malvina` => 168,
  10. `Alex` => 198,
  11. `Dron` => 181,
  12. `Max` => 185,
  13. `Pablus` => 192,
  14. `Rat` => 170,
  15. `Dwarf` => 171,
  16. );
  17.  
  18. foreach ($classmatersHeight as $key => $value)
  19. {
  20. echo "Имя одноклассника - $key <br/> ";
  21. echo "рост одноклассника - $value <br/>";
  22.  
  23. if ($value > $heightKid)
  24. $numberHeight++;
  25. };
  26.  
  27.  
Success #stdin #stdout #stderr 0.02s 52488KB
stdin
Standard input is empty
stdout
Имя одноклассника -  <br/> рост одноклассника - 171 <br/>
stderr
sh: 1: Anton: not found
sh: 1: Malvina: not found
sh: 1: Alex: not found
sh: 1: Dron: not found
sh: 1: Max: not found
sh: 1: Pablus: not found
sh: 1: Rat: not found
sh: 1: Dwarf: not found