src/Filter/Sanitizers.php
public function filter_sanitize($v, $p)
    {
        $option = Helper::arrGet($this->sanitizes, $p, $p);
        $v->setValue(filter_var($v->getValue(), $option));
        if ($p === 'int') {
            if ((int)$v->getValue() !== (int)(float)$v->getValue()) {
                $v->setValue('');
            }
        }
    }
public function filter_sanitize($v, $p)
    {
        $option = Helper::arrGet($this->sanitizes, $p, $p);
        $v->setValue(filter_var($v->getValue(), $option));
        if ($p === 'int') {
            if ((int)$v->getValue() !== (int)(float)$v->getValue()) {
                $v->setValue('');
            }
        }
    }
public function filter_sanitize ( $ v , $ p ) { $ option = Helper :: arrGet ( $ this -> sanitizes , $ p , $ p ) ; $ v -> setValue ( filter_var ( $ v -> getValue ( ) , $ option ) ) ; if ( $ p === 'int' ) { if ( ( int ) $ v -> getValue ( ) !== ( int ) ( float ) $ v -> getValue ( ) ) { $ v -> setValue ( '' ) ; } } }
sanitize the value using filter_var.

@param ValueTO $v
@param         $p
sanitize the value using filter_var .