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

  1. <html>
  2.     <head>
  3.     <title>PHP Greetings Page</title>
  4.     </head>
  5.     
  6.     <body>
  7.         <h3>Welcome to my first PHP Page!</h3>
  8.     
  9. <?php
  10. $var_one="Variable One";
  11. echo "$var_one \n";
  12. $var_two="Variable Two";
  13. echo "$var_two \n";
  14. $var_three="Variable Three";
  15. echo "$var_three \n";
  16. ?>
  17.  
  18.     </body>
  19. </html>
  20.  
File Description
  • Assignment 1
  • PHP Code
  • 30 Apr-2022
  • 307 Bytes
You can Share it: