-
Notifications
You must be signed in to change notification settings - Fork 2
Uri: getFragment Example
Terry L edited this page Jun 20, 2020
·
3 revisions
Shieldon\Psr7\Uri
Retrieve the fragment component of the URI.
-
return
string
Example:
$uri = new \Shieldon\Psr7\Uri(
'https://example.com/post/?p=113&foo=bar#yes-i-do'
);
echo $uri->getFragment();
// Outputs: yes-i-do
composer require shieldon/psr-http
Shieldon PSR HTTP implementation written by Terry L. from Taiwan.