Glossary Term
intval()
intval() — Get the integer value of a variable.
Returns the int value of value, using the specified base for the conversion (the default is base 10). intval should not be used on objects, as doing so will emit an E_WARNING level error and return 1.
Inputs: value: The scalar value being converted to an integer base: The base for the conversion
Returns: The integer value of value on success, or 0 on failure. Empty arrays return 0, non-empty arrays return 1. 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, intval(‘1000000000000’) will return 2147483647. The maximum signed integer value for 64 bit systems is 9223372036854775807.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
