|
intvalGet the integer value of a variable Description
int intval(mixed
$value , int $base = 10)
Returns the int value of Parameters
Return Values
The integer value of
The maximum value depends on the system. 32 bit systems have a
maximum signed integer range of -2147483648 to 2147483647. So for example
on such a system, Strings will most likely return 0 although this depends on the leftmost characters of the string. The common rules of integer casting apply. Changelog
Examples
Example #1 intval examples The following examples are based on a 64 bit system.
Notes
See Also
|