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:
- testing if a variable is assigned in PHP with isset() function
- Variable Scope In PHP
- PHP Variables Basic
- Variables default values in PHP
- PHP’s deal with unassigned variables
- Understanding DataTypes in ActionScript 3
4:36 am
Hola, ЎGracias! Ahora me irй en este blog cada dнa!
Truden