Returns a certain parameter from POST
Can be used as ->post('key.key2.key.etc')
If key is NULL, returns all the data in the POST

@param null $key
@param null $default

@return string|array
963739
public function post($key = NULL, $default = NULL)
    {
        if ( !$key ) {
            return $this->request->all();
        }

        $path = '';
        $key  = explode('.', $key);
        foreach ($key as $item) {
            if ( !$path ) {
                $path .= $item;
                continue;
            }
            $path .= '[' . $item . ']';
        }

        return $this->request->get($path, $default, TRUE);
    }
1077302
public function get($key = null, $default = null)
    {
        if (is_null($key)) {
            return $this->array;
        }

        if (false === strpos($key, $this->separator)) {
            return $this->array[$key] ?? $this->defaultValue($key, $default);
        }

        $keyArray = explode($this->separator, $key);
        $tmp      = $this->array;
        foreach ($keyArray as $k) {
            if (isset($tmp[$k])) {
                $tmp = $tmp[$k];
            } else {
                $tmp = $this->defaultValue($key, $default);
                break;
            }
        }
        return $tmp;
    }
832468
public function getValue($key, $default = null)
    {
        $meta = $this->meta;

        if (isset($meta[$key])) {
            return $meta[$key];
        }

        return $default;
    }
217843
public function query(string $key = null, $default = null)
    {
        if (is_null($key)) {
            return $this->getQueryParams();
        }
        return $this->getQueryParams()[$key] ?? $default;
    }
845790
public function any($key, $default = NULL)
    {
        $item = $this->param($key, NULL);
        if ( $item ) {
            return $item;
        }
        $item = $this->post($key, NULL);
        if ( $item ) {
            return $item;
        }
        $item = $this->query($key, NULL);
        if ( $item ) {
            return $item;
        }

        return $default;
    }
257107
public function getParameter($key, $default = null)
    {
        return isset($this->options[$key]) ? $this->options[$key] : $default;
    }
810783
private function get($key, $default = null)
    {
        if (isset($this->responseData['error'][$key])) {
            return $this->responseData['error'][$key];
        }

        return $default;
    }
1027246
private static function get($key = null, $default = null) {

		if(null !== $key && isset(static :: $method['method'], static :: $method['data'])) {

			if(static :: isMethod(static :: $method['method'])) {

				$helper  = new StringToArray();
				$data 	 = $helper -> execute($key, $default, static :: $method['data']);

				//Trim string
				if(true === isset(static :: $options[self :: TRIM_STRING])) {

					if(is_string($data) === 0) {
						$data = trim($data);
					}
				}

				//Convert empty string to NULL
				if(true === isset(static :: $options[self :: EMPTY_STRING_TO_NULL])) {

					if(is_string($data) && strlen($data) === 0) {
						$data = null;
					}
				}

				//Convert empty array to NULL
				if(true === isset(static :: $options[self :: EMPTY_ARRAY_TO_NULL])) {

					if(is_array($data) && count($data) === 0) {
						$data = null;
					}
				}

				$default = null === $data ? $default : $data;
			}

			static :: $method = [];
		}

		return $default;
	}
1209079
public function Post($Key = NULL, $Default = NULL) {
      if ($Key === NULL)
         return $this->GetRequestArguments (self::INPUT_POST);
      else
         return $this->GetValueFrom(self::INPUT_POST, $Key, $Default);
   }
217150
public function get(string $key,string $default=null)
  {
    $keys = explode('.',$key);
    $val = $this->confValues;

    for ($i=0; $i<count($keys); $i++) {
      $val = ( $val[ $keys[$i] ] ?? null);
      if (is_null($val)) break;
    }

    return $val ?? $default;
  }
58313
public function get(string $key, $default = null)
    {
        if ($this->exists($key)) {
            return $this->parameters[$key];
        }

        return $default;
    }
701121
public function get($key, $default = null) {
		$this->loadIfNeeded();

		return isset($this->array[$key]) ? $this->array[$key] : $default;
	}
140882
public function get($key, $default = null)
    {
        $keys = explode('.', $key);
        $value = $default;
        foreach ( $keys as $i => $_key ) {
            if ( ! $i && isset($this->_params[$_key]) ) {
                $value = $this->_params[$_key];
            } elseif ( is_array($value) && isset($value[$_key]) ) {
                $value = $value[$_key];
            } else {
                $value = $default;
                break;
            }
        }
        return $value;
    }
44955
public function input($key = null, $default = null)
    {
        return $this->getParameter($key, $this->getPayloadData($key, $default));
    }
902697
public function getParameter($key, $default = null)
    {
        if (!is_string($key)) {
            throw new \InvalidArgumentException('Non-string argument provided as a parameter key');
        }

        if (array_key_exists($key, $this->parameters)) {
            return $this->parameters[$key];
        }

        return $default;
    }
937668
public function get($key, $default = null)
    {
        $key = strtolower($key);

        if (!array_key_exists($key, $this->data)) {
            if (null === $default) {
                return null;
            }

            return $default;
        }

        return $this->data[$key];
    }
316384
public function get($key, $default = NULL)
    {
        return ($this->has($key)) ? $this->getIn($key, $this->all()) : $default;
    }