Thursday 25 August 2011

PHP - Variables

The way to store information in php program by using a varible
*All variable is preceeded by $ sign.
* Values are assigned with = operator.
*Composed of letters(lower case and upper case), digits(0 to 9) and under score charecters.
first charecters after $ may not be a number.

Types of variables
1. Interger - a whole number without a decimal point
2. Double -  Floating point like 3.141
3. Boolean two possible values
4. Null  special type has one values NULL.
5. String - sequence of charecter
6. Array -  collection of elements
7. Objects -  Instance of classes
8. Resources -  special variables that hold reference external to PHP

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...