intval
intval — Get the integer value of a variable
intval(mixed $value, int $base = 10): int
Returns the integer value of the parameter, 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_NOTICE level error and return 1.