Variable Types in PHP

Filed in php-lesson1(variables) 2 comments

There are totally eight type is PHP;integeres, double, Booleans, strings, arrays, object, NULL and resources
here is to have a summary of all of these variables that PHP contains

  • Integers are the whole numbers without a decimal point like 34956
  • Doubles are floating-point-point numbers like 3.14159 or 56.0
  • Boolean has only two values
  • NULL is a special type that has only one value: NULL
  • Strings contains characters
  • Arrays are the name and tndexed collections of other values
  • objects are instances of programmer-defined classes that contains a package of a combination of other functions and variables that has their own values defined
  • Resources are special variables that hold refrence to resources external to php)such as database connections)
  • it might have looked like so intresting that PHP has just these 8 typpes while other programming languages such as AS and C has a numbers of Types that is so hard to remmber

    Related posts:

    1. testing if a variable is assigned in PHP with isset() function
    2. Variable Scope In PHP
    3. PHP Variables Basic
    4. Variables default values in PHP
    5. PHP’s deal with unassigned variables
    6. Understanding DataTypes in ActionScript 3
    Posted by voshka   @   6 March 2010 2 comments

    Share This Post

    RSS Digg Twitter StumbleUpon Delicious Technorati

    2 Comments

    Comments
    Mar 9, 2010
    4:36 am
    #1 Truden :

    Hola, ЎGracias! Ahora me irй en este blog cada dнa!

    Truden

    Author Mar 9, 2010
    5:16 am
    #2 voshka :

    Sorry I didn’t understand you
    would you please write in english?

    thanks

    Leave a Comment

    Previous Post
    «
    Next Post
    »
    CrossBlock designed by DeltaManual.Com  |  In conjunction with Web Hosting   |   Web Hosting   |   Reverse phone