src/Traits/Exportable.php
public function toQueryString($separator = '&', $encoding = PHP_QUERY_RFC3986)
    {
        return http_build_query($this->toArray(), null, $separator, $encoding);
    }
public function toQueryString($separator = '&', $encoding = PHP_QUERY_RFC3986)
    {
        return http_build_query($this->toArray(), null, $separator, $encoding);
    }
public function toQueryString ( $ separator = '&' , $ encoding = PHP_QUERY_RFC3986 ) { return http_build_query ( $ this -> toArray ( ) , null , $ separator , $ encoding ) ; }
Returns a HTTP query string of the values

Note: should only be used with elements that can be cast to scalars.

@param string $separator
@param int    $encoding

@return string
Returns a HTTP query string of the values