can somebody explain me what are variables case sensitive? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

can somebody explain me what are variables case sensitive?

19th Aug 2016, 2:15 AM
Clara Isabel Arredondo Razo
Clara Isabel Arredondo Razo - avatar
3 Answers
+ 2
variable case sensitive mean that you can use the same Word for 2 variable like $variable = 45; $VariaBle = 62; both are différents so if you test if ($VariaBle == $variable) is false because php variables are case sensitive
19th Aug 2016, 8:44 AM
francis
+ 1
first you should know what case sensitive means. A n a r two different things. one is a uppercase A where as another is lower case a. php treats both as different variables so $a=5; and $A=6; are two different variables.
19th Aug 2016, 11:26 AM
Tejash Shrestha
Tejash Shrestha - avatar
+ 1
thanks
19th Aug 2016, 5:29 PM
Clara Isabel Arredondo Razo
Clara Isabel Arredondo Razo - avatar