public function getPost($key = null, $default = false)
    {
        if ($key !== null) {
            if (array_key_exists($key, $this->post)) {
                return $this->post[$key];
            } else {
                return $default;
            }

        } else {
            return $this->post;
        }
    }
public function getPost($key = null, $default = false)
    {
        if ($key !== null) {
            if (array_key_exists($key, $this->post)) {
                return $this->post[$key];
            } else {
                return $default;
            }

        } else {
            return $this->post;
        }
    }
public function getPost ( $ key = null , $ default = false ) { if ( $ key !== null ) { if ( array_key_exists ( $ key , $ this -> post ) ) { return $ this -> post [ $ key ] ; } else { return $ default ; } } else { return $ this -> post ; } }
Returns post parameter

@param string $key
@param mixed $default Default value to be returned on absence
@return string|array
Returns post parameter