public function append($url = '', $argsOrParams = array(), $params = array())
    {
        if (strpos($url, '%s') !== false) {
            $url = vsprintf($url, (array)$argsOrParams);
        } else {
            $params = $argsOrParams;
        }
        if ($params) {
            $url .= (false === strpos($url, '?') ? '?' : '&');
        }
        return $url . (is_array($params) ? http_build_query($params) : $params);
    }
public function append($url = '', $argsOrParams = array(), $params = array())
    {
        if (strpos($url, '%s') !== false) {
            $url = vsprintf($url, (array)$argsOrParams);
        } else {
            $params = $argsOrParams;
        }
        if ($params) {
            $url .= (false === strpos($url, '?') ? '?' : '&');
        }
        return $url . (is_array($params) ? http_build_query($params) : $params);
    }
public function append ( $ url = '' , $ argsOrParams = array ( ) , $ params = array ( ) ) { if ( strpos ( $ url , '%s' ) !== false ) { $ url = vsprintf ( $ url , ( array ) $ argsOrParams ) ; } else { $ params = $ argsOrParams ; } if ( $ params ) { $ url .= ( false === strpos ( $ url , '?' ) ? '?' : '&' ) ; } return $ url . ( is_array ( $ params ) ? http_build_query ( $ params ) : $ params ) ; }
Append parameters to specified URL

@param string $url
@param string|array $argsOrParams The arguments to replace in URL or the parameters append to the URL
@param string|array $params The parameters append to the URL
@return string
Append parameters to specified URL