123 - 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 123.php

  1. <?php
  2. $arr = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
  3. $arr2 = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2];
  4.  
  5. echo '<table style="border: 1px solid black; width: 100%;">';
  6. for ($i = 0; $i < count($arr); $i++){
  7.     echo '<tr>';
  8.     echo '<td style="border: 1px solid black; padding: 5px;">';
  9.     echo $arr[$i];
  10.     echo '</td>';
  11.     echo '<td style="border: 1px solid black; padding: 5px;">';
  12.     echo $arr[$i];
  13.     echo '</td>';
  14.     echo '</tr>';
  15. }
  16. echo '</table>';
File Description
  • 123
  • PHP Code
  • 30 Jun-2021
  • 483 Bytes
You can Share it: