@php-wasm/universalFunctionstoRelativeUrltoRelativeUrl CallabletoRelativeUrl(url: URL): stringReturns a string representing the path, query, and fragment of the given URL.@exampleconst url = new URL('http://example.com/foo/bar?baz=qux#quux');toRelativeUrl(url); // '/foo/bar?baz=qux#quux'Parametersurl: URLThe URL.Returns stringThe path, query, and fragment.
Returns a string representing the path, query, and fragment of the given URL.