php function name case sensitive? code example
Example 1: is switch case case sensitive in php
<?php
$smart = "cRikEy";
switch (strtolower($smart)) {
case "crikey": // Note the lowercase chars
echo "Crikey";
break;
case "hund":
echo "Hund";
break;
case "kat":
echo "Kat";
break;
default:
echo "Alt Andet";
}
?>
Example 2: is php a case sensitive language?
PHP is partially case sensitive. The variable names are case-sensitive but function names are not.