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

  1. <?php
  2. <table border = 1>
  3.     <tr>
  4.         <td>1</td>
  5.         <td>2</td>
  6.         <td>3</td>
  7.         <td>4</td>
  8.         <td>5</td>
  9.         <td>6</td>
  10.         <td>7</td>
  11.     
  12.  
  13. <?php
  14.  
  15.  
  16. for ($i =0; $i <15; $i =$i + 1){
  17.   
  18.   
  19.   echo "<td>";
  20.   echo ($i+1);
  21.       if(6==6){
  22.   }
  23.   
  24. echo "</td>"; 
  25. }
  26.       ?>
  27. </tr>
  28. </table>
  29.  
File Description
  • Calender
  • PHP Code
  • 16 Sep-2021
  • 311 Bytes
You can Share it: