The main way to store information in the middle of a php program is by using a variable. Hear are the most important things to know about variable in php.
- All variable in php are denoted with a leading dollar sing ($).
- The value of the variable a value of its most recent assignment.
- Variable of assigned with the operator with the variable on the left hand side and the expression to be evaluated on the right.
- Variable can but do not read to be declare before assignment.
- Variable in php do not have intrinsic type - a variable dos not know in advance whether it will be used to stared a number of a string of characters.
- Variable use define they are assigned have default value.
- PHP does a good job of aromatically converting types from one to another when necessary.
- PHP variable are perl-link' PHP has a total of eight data types which we use to construct our variables.
- Integers : Are whole number without a decimal point like '123456' .
- Doubles : Are Flouting point numbers like '3.14156.499'.
- Null : Is a special type that only has one value 'Null'.
- Boolean : Have only two possible value other true or false 'True/False'.
- String : Are sequence of character like php support strings operators.
- Array : Are name and index collection of other value.
- Object : An object is a data type which store data and information
- Resource : The special resource type is not a actual data type. It is storing of a reference to function and resource external to php.

No comments:
Post a Comment