What is an integer data type integer data type is what we often say integers, it can only be integers, like we wrote 123456, my age 20, this is an integer, or 123456, which represents the integer type, which we write are decimal, can also write octal number, hexadecimal, This represents the integer type. If you use octal notation, the number must be preceded by 0, and if hexadecimal, you need to add 0x. Integral type is to have a valid range, the effective range is -2447483648~+2147483647 since there is a storage range, then we say that two integral type must be equal to the shaping? Because more than the storage range of the integer type will produce a phenomenon, called overflow phenomenon, what does it mean to take us to say, take a liter of the cup, you want to install 10 liters of water, that must not fit ah on the outside, and since you want to load 10 liters of water, you can only take a larger container to install it. Therefore, when the given value exceeds the maximum range that the int can express, it will be treated as a float type, and its storage range is larger than the integer type. If an illegal number (8 and 9) is present in the octal system, the following numbers are
1. PHP: Integer type (integer) data type instance detailed
Summary: The integer data type is what we often say the whole number, it can only be integers, like we wrote 123456, my age 20, this is an integer, or 123456, which represents the integral type, which we write are decimal, but also can write octal numbers, hexadecimal, which all represent the integer type. If you use octal notation, the number must be preceded by 0, and if hexadecimal, 0x is required.
2. Parsing the integer type of PHP data type (integer)
Summary: An integer is a collection of ℤ={...,-2,-1,0,1,2,...} A number in the. Syntax integer values can be expressed in decimal, hexadecimal, octal, or binary notation, preceded by an optional symbol (-or +). ...
3. PHP integral type (integer)
Summary: Integer values can be expressed in decimal, hexadecimal, octal, or binary notation, preceded by an optional symbol (-or +). The binary representation of the integer is available from PHP 5.4.0.
4. Data type in PHP (1) _php tutorial
Introduction: Data Type in PHP (1). PHP supports eight primitive types. Four scalar types: Boolean (Boolean) integer (integer) floating-point (float) (floating-point, also Double) string (string)
5. PHP supports 8 primitive types
Summary: PHP supports eight primitive types for eight primitive PHP types. Four scalar types: Boolean (Boolean) ――true or Fasle two are case insensitive integer (integer) ――32-bit systems, range:-2 147 483 648~+2 147 483 647 Float (float) (floating-point, also "Doub Le ") ――32-bit system, range: 1.7e-308~
6. PHP supports 8 primitive types
Summary: PHP supports eight primitive types for eight primitive PHP types. Four scalar types: Boolean (Boolean)--true or Fasle two are case insensitive integer (integer)-32-bit system, Range: 2 147 483 648~+2 147 483 647 Float (float) (floating-point, also "Doub Le ")--32-bit system, range: 1.7e-308~1
7. Data type in PHP (1)
Introduction: Data Type in PHP (1). PHP supports eight primitive types. Four scalar types: Boolean (Boolean) integer (integer) floating-point (float) (floating-point, also Double) string (string)
"Related question and answer recommendation":