Boti 2 - 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 Boti 2.php

  1. <?php
  2.  
  3. $family_name = "Szász";
  4.  
  5. $given_name = "Pisti";
  6.  
  7. //echo '$family_name $given_name';
  8. //echo "\n";
  9. //echo "$family_name $given_name";
  10.  
  11. $full_name=$family_name.' '.$given_name;
  12.  
  13. echo "\n";
  14.  
  15. echo "Én vagyok $full_name.";
  16.  
  17. $age = 15;
  18.  
  19. echo "\n";
  20.  
  21. echo "$age éves.";
  22.  
  23. echo "\n";
  24. echo "Csóró.";
  25.  
  26. for($i=0; $i<10; $i = $i + 1) {
  27.     
  28.      echo "\n";
  29.      echo $i;
  30. }
  31.  
  32.  
File Description
  • Boti 2
  • PHP Code
  • 19 Sep-2021
  • 371 Bytes
You can Share it: