Home of web learners


variable means where you can store your data and you can change data of variable

Variable can be different type like integar variable,string variable

In php you don't have to think about variable type

You just put $ before the name of the variable like $a or $b

You can assign any type of value inside your variable like $a=34 or $b="hi"

Variable name is case sensitive,that means $a and $A is not same,its different

Lets use a variable inside php code

echo $a;



here $a having a string value "hello" when we echo $a,it shows data of $a

you can use different type of value inside $a like 23 or "lets go" and check output


About webn3rd