PHP 手冊
前一頁 |  | 下一頁

# intval

(PHP 3, PHP 4 , PHP 5)

intval -- Get integer value of a variable

## Description

int intval ( mixed var [, int base] )

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.

> 注: The base argument for intval() has no effect unless the var argument is a string.

See also floatval(), strval(), settype() and Type juggling.

前一頁 | 內容 | 下一頁
import_request_variables | 上一層 | is_array