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

  1. <?php
  2.  
  3. $szam1 = $_GET['szam1'];
  4. $szam2 = $_GET['szam2'];
  5.  
  6. if ($szam1 > $szam2){
  7.     echo "Az első szám nagyobb";
  8. }else {
  9.     echo "A második szám nagyobb";
  10. }
File Description
  • szam2
  • PHP Code
  • 07 Apr-2020
  • 161 Bytes
You can Share it: