PHP variables

PHP varriales are used to hold values or expressions.
The values or information can be text,number,string and array.
In php varriables are assigned with $ sign.
If you do not use $ sign before assigning the variables then they will not work.
The variable name must begin with a letter or the underscore character.
A variable name should not contain spaces.
Variable names are case sensitive (y and Y are two different variables).
PHP has no command for declaring a variable.
A variable is created the moment you first assign a value to it.

Leave a Reply

Your email address will not be published.