src/Variables/Specific/Get.php
public function buildString(array $variables = [], bool $useExisting = true): string
    {
        if ($useExisting === true) {
            $variables = \array_merge($this->variables, $variables);
        }

        $tmp = [];
        foreach ($variables as $name => $val) {
            if ($val !== null) {
                $tmp[] = $name.'='.\urlencode((string)$val);
            }
        }

        $ret = '';
        if (\count($tmp) > 0) {
            $ret .= '?'.\implode('&', $tmp);
        }
        return $ret;
    }
public function buildString(array $variables = [], bool $useExisting = true): string
    {
        if ($useExisting === true) {
            $variables = \array_merge($this->variables, $variables);
        }

        $tmp = [];
        foreach ($variables as $name => $val) {
            if ($val !== null) {
                $tmp[] = $name.'='.\urlencode((string)$val);
            }
        }

        $ret = '';
        if (\count($tmp) > 0) {
            $ret .= '?'.\implode('&', $tmp);
        }
        return $ret;
    }
public function buildString ( array $ variables = [ ] , bool $ useExisting = true ) : string { if ( $ useExisting === true ) { $ variables = \ array_merge ( $ this -> variables , $ variables ) ; } $ tmp = [ ] ; foreach ( $ variables as $ name => $ val ) { if ( $ val !== null ) { $ tmp [ ] = $ name . '=' . \ urlencode ( ( string ) $ val ) ; } } $ ret = '' ; if ( \ count ( $ tmp ) > 0 ) { $ ret .= '?' . \ implode ( '&' , $ tmp ) ; } return $ ret ; }
Builds GET variables string.

@param array $variables
@param bool  $useExisting
@return string
Builds GET variables string .