get a value from sysctl command

@param string $key key of the value to get

@return string
357453
protected function grabkey($key)
    {
        if (CommonFunctions::executeProgram('sysctl', $key, $s, PSI_DEBUG)) {
            $s = preg_replace('/'.$key.': /', '', $s);
            $s = preg_replace('/'.$key.' = /', '', $s);

            return $s;
        } else {
            return '';
        }
    }
1236260
public function get(string $key): string
    {
        $key = $this->getKey($key);
        $value = $this->headers[$key] ?? "";
        return is_array($value) ? implode(", ", $value) : $value;
    }
250960
public function getKeyValue($key)
    {
        return empty($this->_data[$key]) ? null: $this->_data[$key];
    }
1334829
public function offsetGet($key) {
		$key = strtolower($key);
		return isset($this->data[$key]) ? $this->data[$key] : null;
	}
436925
public static function get($key) {
        if (isset(self::$keyvals) && isset(self::$keyvals[$key])) {
            return self::$keyvals[$key];
        }
        return '';
    }
646730
public function getValueByKey($key)
    {
        $model = Configuration::whereConfigurationKey($key)->first();

        if (null === $model) {
            return null;
        }

        return $model->configuration_value;
    }
1033808
public function get($key)
    {
        $yaml = $this->getContent();

        return isset($yaml['parameters']) && isset($yaml['parameters'][$key]) ? $yaml['parameters'][$key] : '';
    }
57996
public function get(string $key)
    {
        $key = $this->getNamespacedKey($key);

        return $this->session->get($key);
    }
171773
private function getCollectorValue($key)
    {
        if (isset($this->currentCollectorData['sys_pathNames'])) {
            if (array_key_exists($key, $this->currentCollectorData['sys_pathNames'])) {
                return $this->currentCollectorData['sys_pathNames'][$key];
            }
        }

        return null;
    }
610798
public function getTtl($key)
    {
        Util::checkArgString($key);

        try {
            return $this->getAdapter()->getTtl($key);
        } catch (KeyNotFoundException $e) {
            throw $e;
        } catch (\Exception $e) {
            throw new InternalException($e->getMessage(), $e->getCode(), $e);
        }
    }
321536
public function get($key)
    {
        $curlHandler = $this->curlHandler($key.'?fields=_source,_ttl');

        $response = \curl_exec($curlHandler);
        \curl_close($curlHandler);

        if (false !== $response) {
            $response = \json_decode($response, true);

            if (true === $response['exists'] && $response['fields']['_ttl'] > 0) {
                return $response["_source"]['value'];
            }
        }

        return null;
    }
1050692
public function getValue($key) {
		if (isset ( $this->a [$key] )) {
			return $this->a [$key];
		} else {
			return NULL;
		}
	}
1278768
public static function &get($key)
    {
        self::startIf();
        if (isset($_SESSION[$key])) {
            return $_SESSION[$key];
        } else {
            $val = null;
            return $val;
        }
    }
354421
public function getTtl($key)
    {
        if (!array_key_exists($key, $this->store)) {
            throw new KeyNotFoundException();
        }

        $getResult = $this->store[$key];
        $unserialized = @unserialize($getResult);

        if (!Util::hasInternalExpireTime($unserialized)) {
            throw new \Exception('Cannot retrieve ttl');
        }

        return $this->handleTtl($key, $unserialized['ts'], $unserialized['s']);
    }
1002567
public function get($key)
    {
        $value = $this->apc->get($this->prefix.$key);

        if ($value !== false) {
            return $value;
        }
    }
732205
public function get(string $key)
    {
        $func = self::$type . '_fetch';
        return parent::debugGet($key, $func($key));
    }
247948
public function getMessage($key) {
		if (isset($this->msg[$key])) {
			return $this->msg[$key];
		} else {
			return null;
		}
	}