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. if (is_numeric($aantal)) {
  5.     "$aantal >= 0";
  6. } else { 
  7.     exit("'" . $aantal . "' geen getal ingevoerd" . PHP_EOL);
  8. }
  9. $vraag = "Wat wil je toevoegen aan jou bucketlist?" . PHP_EOL;
  10.  
  11. for ($i = 0; $i < count($aantal); $i++) {
  12.     echo $vraag[$i] . PHP_EOL;
  13. }
  14. $type = array("");
  15.  
File Description
  • Bucket_list
  • PHP Code
  • 15 Sep-2021
  • 369 Bytes
You can Share it: