QueryString
[mdref/mdref] / http / QueryString / getInt.md
1 # int http\QueryString::getInt(string $name[, mixed $defval = NULL[, bool $delete = false)
2
3 Retrieve a int value at offset $name.
4
5 ## Params:
6
7 * string $name
8 The key to look up.
9 * Optional mixed $defval = NULL
10 The default value to return if the offset $name does not exist.
11 * Optional bool $delete = false
12 Whether to remove the key and value from the querystring after retrieval.
13
14 ## Returns:
15
16 * int, the (casted) value.
17 * mixed, $defval if offset $name does not exist.