fork(3) download
  1. <?php
  2. $favfruit = "mango";
  3.  
  4. switch ($favfruit) {
  5. case "lichi":
  6. echo "Your favorite color is lichi!";
  7. break;
  8. case "mango":
  9. echo "Your favorite color is mango!";
  10. break;
  11. case "apple":
  12. echo "Your favorite color is apple!";
  13. break;
  14. default:
  15. echo "Your favorite fruit is neither lichi, mango, nor apple!";
  16. }
  17. ?>
Success #stdin #stdout 0.03s 52480KB
stdin
Standard input is empty
stdout
Your favorite color is mango!