1<?php
2$smart = "cRikEy";
3
4switch (strtolower($smart)) {
5 case "crikey": // Note the lowercase chars
6 echo "Crikey";
7 break;
8 case "hund":
9 echo "Hund";
10 break;
11 case "kat":
12 echo "Kat";
13 break;
14 default:
15 echo "Alt Andet";
16}
17?>
18