public static function appendParamsToUrl($url, $params)
    {
        if (empty($params)) {
            return $url;
        }

        $getParams =  http_build_query($params, null, '&');

        return $url . '?' . $getParams;
    }
public static function appendParamsToUrl($url, $params)
    {
        if (empty($params)) {
            return $url;
        }

        $getParams =  http_build_query($params, null, '&');

        return $url . '?' . $getParams;
    }
public static function appendParamsToUrl ( $ url , $ params ) { if ( empty ( $ params ) ) { return $ url ; } $ getParams = http_build_query ( $ params , null , '&' ) ; return $ url . '?' . $ getParams ; }
Append the parameters to the url for GET request
@param string $url The url to append the params to
@param array $params The parameters' array
@return string
Append the parameters to the url for GET request