A same-document reference refers to a URI that is, aside from its fragment
component, identical to the base URI. When no base URI is given, only an empty
URI reference (apart from its fragment) is considered a same-document reference.
public static isSameDocumentReference ( Psr\Http\Message\UriInterface $uri, Psr\Http\Message\UriInterface $base = null ) : boolean | ||
$uri | Psr\Http\Message\UriInterface | The URI to check |
$base | Psr\Http\Message\UriInterface | An optional base URI to compare against |
return | boolean |