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.
Result of php executing
Full code of ivt.php
- <html>
- <head>
- </head>
- <body>
- <?php
- $users = ["Tom","Sam","Bob","Alice","Alice"];
- $num - count($users);
- for ($i - 1; $i < 2; $i++)
- {
- echo "<table border=1><tr><th>name</th></tr>";
- for ($j = 1; $j < $num; ++$j)
- {
- echo "<tr>";
- echo "<td>" . $users[$j] . "</td>";
- echo "</tr>";
- }
- echo "</table>";
- }
- ?>
- </body>
- </html>