src/Leevel/Http/Bag.php
protected function filterValueWithFilterVar($value, $filter, array $options)
    {
        $value = filter_var($value, $this->parseFilterId($filter), $options);

        return $value;
    }
protected function filterValueWithFilterVar($value, $filter, array $options)
    {
        $value = filter_var($value, $this->parseFilterId($filter), $options);

        return $value;
    }
使用 filter_var 过滤值

@param mixed $value
@param mixed $filter
@param array $options

@see http://php.net/manual/en/function.filter-var.php

@return mixed