WordPress\AiClientDependencies\Psr\Http\Message
UriInterface::getFragment
Retrieve the fragment component of the URI.
If no fragment is present, this method MUST return an empty string.
The leading "#" character is not part of the fragment and MUST NOT be added.
The value returned MUST be percent-encoded, but MUST NOT double-encode any characters. To determine what characters to encode, please refer to RFC 3986, Sections 2 and 3.5.
Method of the class: UriInterface{}
No Hooks.
Returns
String. The URI fragment.
Usage
$UriInterface = new UriInterface(); $UriInterface->getFragment(): string;
Notes
- See: https://tools.ietf.org/html/rfc3986#section-2
- See: https://tools.ietf.org/html/rfc3986#section-3.5
UriInterface::getFragment() UriInterface::getFragment code WP 7.0
public function getFragment(): string;