Syntax
int intval ( mixed var [, int base] )
Popis
Príkaz jazyka PHP
Returns the integer value of var, using the specified base for the conversion (the default is base 10).
var may be any scalar type. You cannot use intval() on arrays or objects.
Poznámka: The base argument for intval() has no effect unless the var argument is a string.
Pozri aj
floatval, strval, settype