Abstract: integer is Interger. in 32-bit operating systems, the valid range is-2146483648 ~ + 2146483646... integer: Interger. in 32-bit operating systems, the valid range is-2146483648 ~ + 2146483646. The integer value can be specified in decimal, hexadecimal, or octal format. you can also add an optional symbol "-" or "+" to mark positive and negative values. If the octal symbol is used, 0 must be added before the number. hexadecimal notation is used, and 0x must be added before the number, as shown in program 2-5.
$ A = 123; # decimal
$ B =-456; # A negative number
$ C = 0135; # octal number (equal to 93 in decimal format)
$ D = 0x1b; # hexadecimal number (equal to decimal 27)
Echo $ ."
". $ B ."
". $ C ."
". $ D;
?>
The above is the explanation of integer variables of the PHP Data type. For more information, see PHP Chinese network (www.php1.cn )!