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.
Result of php executing
Full code of 123.php
- <?php
- $arr = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
- $arr2 = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2];
- echo '<table style="border: 1px solid black; width: 100%;">';
- for ($i = 0; $i < count($arr); $i++){
- echo '<tr>';
- echo '<td style="border: 1px solid black; padding: 5px;">';
- echo $arr[$i];
- echo '</td>';
- echo '<td style="border: 1px solid black; padding: 5px;">';
- echo $arr[$i];
- echo '</td>';
- echo '</tr>';
- }
- echo '</table>';