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

  1. <?php
  2. echo "hoeveel activiteiten wil je toevoegen?" . PHP_EOL;
  3. $aantal = (int)readline();
  4. $aantal = (is_nummeric);
  5. if (is_numeric($aantal)) {
  6.     "$aantal >= 0";
  7. } else { 
  8.     exit("'" . $aantal . "' geen getal ingevoerd" . PHP_EOL);
  9.     echo "geen getal ingevoerd";
  10. }
  11. $vraag = "Wat wil je toevoegen aan jou bucketlist?" . PHP_EOL;
  12. for ($i = 0; $i < count($type1); $i++) {
  13.     echo $vraag[$i] . PHP_EOL;
  14. }
  15. $type1 = array("$var1", "$var2", "$var3");
File Description
  • bucket_list
  • PHP Code
  • 16 Sep-2021
  • 448 Bytes
You can Share it: