public function getParams()
    {
        if (empty($this->params)) {
            return '';
        }

        $params = array_map(function ($key, $value) {
            return "$key=$value";
        }, array_keys($this->params), $this->params);

        return '?'.implode('&', $params);
    }
public function getParams()
    {
        if (empty($this->params)) {
            return '';
        }

        $params = array_map(function ($key, $value) {
            return "$key=$value";
        }, array_keys($this->params), $this->params);

        return '?'.implode('&', $params);
    }
public function getParams ( ) { if ( empty ( $ this -> params ) ) { return '' ; } $ params = array_map ( function ( $ key , $ value ) { return "$key=$value" ; } , array_keys ( $ this -> params ) , $ this -> params ) ; return '?' . implode ( '&' , $ params ) ; }
Output a URL

@return string
Output a URL