задание 2 - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of задание 2.php

  1. <?php
  2. $letters = ["A", "B"];
  3. $series = count($letters);
  4. $i = 0;
  5. while ($i<$series){
  6.     echo $letters[$i]."\n";
  7.     $i++;
  8.     
  9. for($count = 0; $count <= 999; $count++)
  10. {
  11. echo str_pad($count, 3, '0', STR_PAD_LEFT)."\r\n";
  12.     }
  13. }
  14.  
  15.  
File Description
  • задание 2
  • PHP Code
  • 03 Dec-2022
  • 230 Bytes
You can Share it: