src/request/Request.php
public function get($key) {
    $get = $this->getParam($key, $this->get);
    if ($get !== null) {
      return $get;
    }
    $post = $this->getParam($key, $this->post);
    if ($post !== null) {
      return $post;
    }
    return $this->getParam($key, $this->files);
  }
public function get($key) {
    $get = $this->getParam($key, $this->get);
    if ($get !== null) {
      return $get;
    }
    $post = $this->getParam($key, $this->post);
    if ($post !== null) {
      return $post;
    }
    return $this->getParam($key, $this->files);
  }
public function get ( $ key ) { $ get = $ this -> getParam ( $ key , $ this -> get ) ; if ( $ get !== null ) { return $ get ; } $ post = $ this -> getParam ( $ key , $ this -> post ) ; if ( $ post !== null ) { return $ post ; } return $ this -> getParam ( $ key , $ this -> files ) ; }
Returns a parameter given via url variables or post variables.
If a key exists both in url an in post variables, the url variable
will be returned.

@param string $key name of the parameter
@return string|null the parameter value, {@code null} if the key does not exist
Returns a parameter given via url variables or post variables . If a key exists both in url an in post variables the url variable will be returned .