public function getQueryString()
    {
        $query_string = '';
        if (count($this->query_string) > 0) {
            $query_string .= http_build_query($this->query_string);
        }
        if ($this->method != 'POST') {
            if (count($this->data) > 0) {
                $query_string .= http_build_query($this->data);
            }
        }
        if (mb_strlen($query_string) > 0) {
            $query_string = (mb_strpos($this->url, '?') ? '&' : '?') . $query_string;
        }

        return $query_string;
    }
public function getQueryString()
    {
        $query_string = '';
        if (count($this->query_string) > 0) {
            $query_string .= http_build_query($this->query_string);
        }
        if ($this->method != 'POST') {
            if (count($this->data) > 0) {
                $query_string .= http_build_query($this->data);
            }
        }
        if (mb_strlen($query_string) > 0) {
            $query_string = (mb_strpos($this->url, '?') ? '&' : '?') . $query_string;
        }

        return $query_string;
    }
public function getQueryString ( ) { $ query_string = '' ; if ( count ( $ this -> query_string ) > 0 ) { $ query_string .= http_build_query ( $ this -> query_string ) ; } if ( $ this -> method != 'POST' ) { if ( count ( $ this -> data ) > 0 ) { $ query_string .= http_build_query ( $ this -> data ) ; } } if ( mb_strlen ( $ query_string ) > 0 ) { $ query_string = ( mb_strpos ( $ this -> url , '?' ) ? '&' : '?' ) . $ query_string ; } return $ query_string ; }
Get the query string by merging any supplied string
with that of the generated components.

@return string The query string

@author: 713uk13m <dev@nguyenanhung.com>
@time  : 10/7/18 02:19
Get the query string by merging any supplied string with that of the generated components .