1a - 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.

Press F11 to switch to fullscreen mode


Your result can be seen below.

Result of php executing





Full code of 1a.php

  1. <?php
  2. $a=7;
  3. $b=4;
  4.  
  5. if($a%2==0){//agrupa a funciones
  6.   echo "par";
  7.   //echo "outra cosa";
  8. }
  9. //elseif($a<$b)
  10.  // echo "igual";
  11. else
  12.   echo "impar";
  13.  
  14. //$c=!(($a<4)&&($b!=4));
  15. //var_dump($a)
  16. //mostra a  variavel
  17. // if = se a condicao foi verdadeira
  18. // else = so executa se o if foi falso
  19. ?>
  20.  
File Description
  • 1a
  • PHP Code
  • 11 Sep-2019
  • 287 Bytes
You can Share it: