public function getURLQuery()
    {
        $qstr = '?';

        $params = $this->getParametersArray();

        $paramCount = count($params);
        $i = 0;
        foreach ($params as $key => $value) {
            if ($value === null) {
                continue;
            }

            $qstr .= $key . '=' . rawurlencode($value);

            if ($i < $paramCount - 1) {
                $qstr .= '&';
            }

            $i++;
        }

        return $qstr;
    }
public function getURLQuery()
    {
        $qstr = '?';

        $params = $this->getParametersArray();

        $paramCount = count($params);
        $i = 0;
        foreach ($params as $key => $value) {
            if ($value === null) {
                continue;
            }

            $qstr .= $key . '=' . rawurlencode($value);

            if ($i < $paramCount - 1) {
                $qstr .= '&';
            }

            $i++;
        }

        return $qstr;
    }
public function getURLQuery ( ) { $ qstr = '?' ; $ params = $ this -> getParametersArray ( ) ; $ paramCount = count ( $ params ) ; $ i = 0 ; foreach ( $ params as $ key => $ value ) { if ( $ value === null ) { continue ; } $ qstr .= $ key . '=' . rawurlencode ( $ value ) ; if ( $ i < $ paramCount - 1 ) { $ qstr .= '&' ; } $ i ++ ; } return $ qstr ; }
Builds a query string from an array and takes care of proper url-encoding

@return string Query string including the '?'
Builds a query string from an array and takes care of proper url - encoding