Integers

Syntax

Příklad 7-1 .




Formally the possible structure for integer literals is: The size of an integer is platform-dependent, although a maximum value of about two billion is the usual value (that's 32 bits signed). PHP does not support unsigned integers.

Integer overflow

Varování





Converting to integer

From booleans

From floating point numbers

Varování

See for more information the warning about float-precision .

From strings

From other types

Výstraha