<html><body>
  <?php
   $vanus=9;
   $vastus="tundmatu vanus";
   switch($vanus){
     case  8: $vastus="noor";  break;
     case  9: $vastus="paras"; break;
     case 10: $vastus="vana";  break;
   }
   echo "Tulemus: " . $vastus;
  ?>
</body></html>