amoussa11

http://gsul.me/f52U

Mar 4th, 2019
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4.  
  5. <?php
  6. $favcolor = "red";
  7.  
  8. switch ($favcolor) {
  9.     case "red":
  10.         echo "Your favorite color is red!";
  11.         break;
  12.     case "blue":
  13.         echo "Your favorite color is blue!";
  14.         break;
  15.     case "green":
  16.         echo "Your favorite color is green!";
  17.         break;
  18.     default:
  19.         echo "Your favorite color is neither red, blue, nor green!";
  20. }
  21. ?>
  22.  
  23. </body>
  24. </html>
Add Comment
Please, Sign In to add comment