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

  1. <html>
  2.     <head>
  3.     </head>
  4.     <body>
  5.         <?php 
  6.         $users = ["Tom","Sam","Bob","Alice","Alice"];
  7.         $num - count($users);
  8.         for ($i - 1; $i < 2; $i++)
  9.         {
  10.             echo "<table border=1><tr><th>name</th></tr>";
  11.             for ($j = 1; $j < $num; ++$j)
  12.             {
  13.                 echo "<tr>";
  14.                 echo "<td>" . $users[$j] . "</td>";
  15.                 echo "</tr>";
  16.             }
  17.             echo "</table>";
  18.         }
  19.         ?>
  20.     </body>
  21. </html>
  22.  
File Description
  • ivt
  • PHP Code
  • 22 Sep-2023
  • 495 Bytes
You can Share it: