Changes

Jump to: navigation, search

Understanding PHP Variable Types

9 bytes added, 19:15, 25 May 2007
The PHP Integer Variable Type
== The PHP Integer Variable Type ==
Integer variables are able to hold a whole number in the range of -2147483648 to 2147483647. Negaitve values can be asssigned by palcing the minus (-) sign after the assigment operator and before the number. If tyhe the value assigned to an integer type variable moves outside the supported range, either via assignment or mathematical calculation, the variable type is automatically converted to a floating point type.
The following examples assign integers to variables:

Navigation menu