Retrieve a query string value (by reference)

@param string $name
@param bool   $sanitize
@param bool   $array

@return mixed
483736
public function get($name, $sanitize = true, $array = false)
    {
        $filter = 0;
        $flags  = FILTER_FLAG_EMPTY_STRING_NULL | FILTER_NULL_ON_FAILURE;

        if ($sanitize) {
            $filter = $filter | FILTER_SANITIZE_STRING;
            $flags  = $flags | FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH;
        }
        if ($array) {
            $flags = $flags | FILTER_REQUIRE_ARRAY | FILTER_FORCE_ARRAY;
        }

        if (empty($name)) {
            $result = array();

            foreach ($this->data as $key => $value) {
                $result[$key] = filter_var($value, $filter, array('flags' => $flags));
            }

            return $result;
        }

        if (!isset($this->data[$name])) {
            return $array ? array() : null;
        }

        return filter_var($this->data[$name], $filter, array('flags' => $flags));
    }
589275
function get($name){
        if(!isset($this->db[$name])){
            return null;
        }
        $r = $this->db[$name];
        return $r();
    }
106138
public function server($name = null)
    {
        $value = $name === null ? $this->server : null;

        $server = (array) $this->server;

        isset($server[$name]) && $value = $server[$name];

        return $value;

        // getServerParams
    }
956799
static function GetArray($name = null)
    {
        $get = filter_input_array(INPUT_GET);
        if (!$name)
        {
            return $get === null ? array() : $get;
        }
        else if (isset($get[$name]) && is_array($get[$name]))
        {
            return $get[$name];
        }
        return array();
    }
820163
private function getValue($form, $name)
    {
        if (is_array($form)) {
            return isset($form[$name]) ? $form[$name] : null;
        } elseif (is_object($form)) {
            $method = 'get' . $name;
            if (method_exists($form, $method)) {
                return $form->$method();
            } else {
                return isset($form->$name) ? $form->$name : null;
            }
        }
    }
29380
public function getParameter(string $name, bool &$contained = NULL) {
        if(isset($this->parameters[$name])) {
            $contained = true;
            return $this->parameters[$name];
        }
        $contained = false;
        return NULL;
    }
1100391
public static function getValue($name)
    {
        if (array_key_exists($name, $_GET)) {
            return $_GET[$name];
        }
        if (array_key_exists($name, $_POST)) {
            return $_POST[$name];
        }
        return null;
    }
1039291
public function getBoolValue($name):?bool
    {
        $value = $this->offsetGet($name);
        if (is_null($value)) {
            return null;
        }

        return (boolean)$value;
    }
718037
public function getValue($name)
    {
        $value = null;
        if ($this->has($name)) {
            $value = call_user_func_array(
                [$this->_inputs[$name], 'getValue'],
                [$name]
            );
        }
        return $value;
    }
1177564
public function getGetParameter($name, $raw = false)
    {
        $value = null;
        $get = $this->getGet();

        if (isset($get[$name])) {
            $value = $get[$name];
        }

        if ($value !== null && !$raw) {
            $value = $this->escapeSpecialChars($value);
        }

        return $value;
    }
887329
public function getParam($name)
    {
        $name = strtoupper($name);
        if (isset($_SERVER[$name])) {
            return $_SERVER[$name];
        }
        return null;
    }
884228
public function get_param($name) {
        if (array_key_exists($name, $this->params)) {
            return $this->params[$name];
        } else {
            return null;
        }
    }
1303798
public function get($name, $decode = true)
    {
        $name = strtolower($name);

        if (isset($this->obj_headers[$name])) {
            $value = $this->{$this->obj_headers[$name]};
        }
        else {
            $value = $this->others[$name];
        }

        if ($decode) {
            if (is_array($value)) {
                foreach ($value as $key => $val) {
                    $val         = rcube_mime::decode_header($val, $this->charset);
                    $value[$key] = rcube_charset::clean($val);
                }
            }
            else {
                $value = rcube_mime::decode_header($value, $this->charset);
                $value = rcube_charset::clean($value);
            }
        }

        return $value;
    }
323753
public function param($name)
    {
        $params = $this->params();
        if (isset($params[$name])) {
            return $params[$name];
        } else {
            return null;
        }
    }
33
public function getInArray($name, array $array)
    {
        $value = $this->get($name);
        return in_array($value, $array) ? $value : $array[key($array)];
    }
1357186
public function get($name = null, $default = '', $sanitize = true)
    {
        if (!isset($name)) {
            return $this->server;
        }

        if (!array_key_exists($name, $this->server)) {
            return $default;
        }

        if (is_array($this->server[$name])) {
            gplcart_array_trim($this->server[$name], $sanitize);
        } else {

            $this->server[$name] = trim($this->server[$name]);

            if ($sanitize) {
                $this->server[$name] = filter_var($this->server[$name], FILTER_SANITIZE_STRING);
            }
        }

        return $this->server[$name];
    }
319993
public function getValue($name)
    {
        if (! is_string($name)) {
            return null;
        }

        try {
            $Comet = \CometPHP\Comet::getInstance();
        } catch (\CometPHP\Exceptions\CometNotBooted $e) {
            return null;
        }

        $bits = explode('.', $name);
        $postData = $Comet['request']->request->all();

        foreach ($bits as $key) {
            if (is_array($postData) && isset($postData[$key])) {
                $postData = $postData[$key];
            } else {
                return null;
            }
        }

        return $postData;
    }