public function filter($varname)
    {
        $val = $this->$varname;

        if (is_null($val) || $this->_sanitized) {
            return $val;
        }

        return is_array($val)
            ? filter_var_array($val, FILTER_SANITIZE_STRING)
            : filter_var($val, FILTER_SANITIZE_STRING);
    }
public function filter($varname)
    {
        $val = $this->$varname;

        if (is_null($val) || $this->_sanitized) {
            return $val;
        }

        return is_array($val)
            ? filter_var_array($val, FILTER_SANITIZE_STRING)
            : filter_var($val, FILTER_SANITIZE_STRING);
    }
public function filter ( $ varname ) { $ val = $ this -> $ varname ; if ( is_null ( $ val ) || $ this -> _sanitized ) { return $ val ; } return is_array ( $ val ) ? filter_var_array ( $ val , FILTER_SANITIZE_STRING ) : filter_var ( $ val , FILTER_SANITIZE_STRING ) ; }
Filters a form value so that it can be used in HTML output.

@param string $varname  The form variable name.

@return mixed  The filtered variable, or null if it doesn't exist.
Filters a form value so that it can be used in HTML output .