public static function makeUrl(array $params): string
    {
        $href = [];

        foreach ($params as $key => $value) {
            $href[] = static::makeParam($key, (string)$value);
        }

        return '?' . implode('&', $href);
    }
public static function makeUrl(array $params): string
    {
        $href = [];

        foreach ($params as $key => $value) {
            $href[] = static::makeParam($key, (string)$value);
        }

        return '?' . implode('&', $href);
    }
public static function makeUrl ( array $ params ) : string { $ href = [ ] ; foreach ( $ params as $ key => $ value ) { $ href [ ] = static :: makeParam ( $ key , ( string ) $ value ) ; } return '?' . implode ( '&' , $ href ) ; }
Return url, if key from parameter exists - add parameter value to url

@param array $params

@return string
Return url if key from parameter exists - add parameter value to url