php case sensitive code example
Example 1: is replace case sensitive php
//Will make sure to replace anything that matches
str_ireplace()
Example 2: 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 3: is php a case sensitive language?
PHP is partially case sensitive. The variable names are case-sensitive but function names are not.