PHP Variable are not case sensitive


PHP Variable are not case sensitive -

php Source -

<!DOCTYPE html>
<html>
<body>

<?php
$color = "red";
echo "My car is " . $color . "<br>";
echo "My house is " . $COLOR . "<br>";
echo "My boat is " . $coLOR . "<br>";
?>
  

</body>
</html>

Output

My car is red
My house is
My boat is 

0 comments:

Post a Comment

My Instagram