Integers

Syntax

Voorbeeld 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

Waarschuwing





Converting to integer

From booleans

From floating point numbers

Waarschuwing

See for more information the warning about float-precision .

From strings

From other types

Let op