public function toString($ignoreEmpty = false, $numPrefix = null, $separator = null)
    {
        if (empty($separator)) {
            $separator = '&';
        }

        return http_build_query(
            $this->toArray($ignoreEmpty),
            $numPrefix,
            $separator
        );
    }
public function toString($ignoreEmpty = false, $numPrefix = null, $separator = null)
    {
        if (empty($separator)) {
            $separator = '&';
        }

        return http_build_query(
            $this->toArray($ignoreEmpty),
            $numPrefix,
            $separator
        );
    }
public function toString ( $ ignoreEmpty = false , $ numPrefix = null , $ separator = null ) { if ( empty ( $ separator ) ) { $ separator = '&' ; } return http_build_query ( $ this -> toArray ( $ ignoreEmpty ) , $ numPrefix , $ separator ) ; }
Extract data as a query string.

@param boolean $ignoreEmpty Omit empty values.
@param string  $numPrefix   Prefix numeric keys
@param string  $separator   Query string value separator.

@return string
Extract data as a query string .