Romanchuk_3.1 - 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 Romanchuk_3.1.php

  1. <?php 
  2. echo '<table border=1>'; 
  3. for ($i = 0; $i < 10; $i++) { 
  4.     echo '<tr>'; 
  5.     for ($j = 1; $j < 11; $j++) { 
  6.         echo '<td style="color:'.($j%2?'black':'red').'">'.($i*10+$j).'</td>'; 
  7.     } 
  8.     echo '</tr>'; 
  9. } 
  10. echo '</table>'; 
  11. ?>
  12.  
File Description
  • Romanchuk_3.1
  • PHP Code
  • 28 Sep-2022
  • 247 Bytes
You can Share it: