src/Yandex/Market/Content/ContentClient.php
protected function buildQueryString($queryData, $prefix = '', $argSeparator = '&', $encType = PHP_QUERY_RFC3986)
    {
        foreach ($queryData as $k => &$v) {
            if (!is_scalar($v)) {
                $v = implode(',', $v);
            }
        }

        $queryString = http_build_query($queryData, $prefix, $argSeparator, $encType);

        foreach ($queryData as $k => $v) {
            if ($k==$v) {
                $queryString = str_replace("$k=$v", $v, $queryString);
            }
        }

        return $queryString;
    }
protected function buildQueryString($queryData, $prefix = '', $argSeparator = '&', $encType = PHP_QUERY_RFC3986)
    {
        foreach ($queryData as $k => &$v) {
            if (!is_scalar($v)) {
                $v = implode(',', $v);
            }
        }

        $queryString = http_build_query($queryData, $prefix, $argSeparator, $encType);

        foreach ($queryData as $k => $v) {
            if ($k==$v) {
                $queryString = str_replace("$k=$v", $v, $queryString);
            }
        }

        return $queryString;
    }
protected function buildQueryString ( $ queryData , $ prefix = '' , $ argSeparator = '&' , $ encType = PHP_QUERY_RFC3986 ) { foreach ( $ queryData as $ k => & $ v ) { if ( ! is_scalar ( $ v ) ) { $ v = implode ( ',' , $ v ) ; } } $ queryString = http_build_query ( $ queryData , $ prefix , $ argSeparator , $ encType ) ; foreach ( $ queryData as $ k => $ v ) { if ( $ k == $ v ) { $ queryString = str_replace ( "$k=$v" , $ v , $ queryString ) ; } } return $ queryString ; }
Returns URL-encoded query string

@note: similar to http_build_query(),
but transform key=>value where key == value to "?key" param.

@param array|object $queryData
@param string       $prefix
@param string       $argSeparator
@param int          $encType

@return string $queryString
Returns URL - encoded query string