<?php
switch ($temperature)
{
   case "hot":
      echo 'Drink beer.';
      break;
   case "cold":
      echo 'Have a coffee with honey.';
      break;
   default:
      echo 'Continue coding..';
}
?>

Add a code snippet to your website: www.paste.org