Integers

Syntax

Esimerkki 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

Varoitus





Converting to integer

From booleans

From floating point numbers

Varoitus

See for more information the warning about float-precision .

From strings

From other types

Varo