original_string: 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('');
              }
          }
      }
code: 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('');
              }
          }
      }
code_tokens: 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 ( '' ) ; } } }
docstring: sanitize the value using filter_var.
  
  @param ValueTO $v
  @param         $p
docstring_tokens: sanitize the value using filter_var .