Friday, May 1, 2009

PHP Variable Data Types : Free PHP Tutorial

  Kaushal Patel       Friday, May 1, 2009
In previous post i have said that you can change the value of a variable, so the important of variable type is not much in php. But it is important to have knowledge of PHP Variable Data Types. So I have put all important data types here.

PHP supports eight primitive data types as follow.

Scalar Types:

PHP support four scalar types.

1. Boolean : TRUE or FALSE. Any non zero values and non empty string are also counted as TRUE.

2. Integer : Round numbers (e.g. 52, -5248, 8459)

3. Float : Floating-point number or 'Double' (e.g. 0.845875, 510.05)

4. String : "Hello PHP", ' Free Online PHP & MySQL Tutorial', etc

Compound Types:

PHP support two compound types.

1. Array

2. Object

Special Types:

PHP support two special types.

1. Resource

2. NULL

We will discuss about each data types in future.
logoblog

Thanks for reading PHP Variable Data Types : Free PHP Tutorial

Newest
You are reading the newest post

2 comments:

  1. It is great for beginners.Thanks for sharing your blogs.

    www.php-training-free.blogspot.com

    ReplyDelete
  2. Hi, There is aid there, encounter Internet, and it is active in Web Design Cochin and ready to provide the skills necessary to achieve a professional-looking website sufficient to meet your budget.Thanks.....

    ReplyDelete