public function ParameterBag::getInt in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-foundation/ParameterBag.php \Symfony\Component\HttpFoundation\ParameterBag::getInt()
Returns the parameter value converted to integer.
Parameters
string $key The parameter key:
mixed $default The default value if the parameter key does not exist:
bool $deep If true, a path like foo[bar] will find deeper items:
Return value
int The filtered value
File
- vendor/
symfony/ http-foundation/ ParameterBag.php, line 223
Class
- ParameterBag
- ParameterBag is a container for key/value pairs.
Namespace
Symfony\Component\HttpFoundationCode
public function getInt($key, $default = 0, $deep = false) {
return (int) $this
->get($key, $default, $deep);
}