Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. <?php
  2. $notes = [];
  3. $on = true;
  4. while ($on) {
  5.  
  6.     $note_entree = readline("Entrée une note : ");
  7.     if ($note_entree == 'fin'){
  8.         $on = FALSE;
  9.         echo 'vos notes son :\n';
  10.     }
  11.     $notes[] = $note_entree;
  12. }
  13. foreach ($notes as $note){
  14.  
  15.     echo "- $note\n";
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement