-
Notifications
You must be signed in to change notification settings - Fork 1
Uri: __toString Example
Terry L edited this page Jun 20, 2020
·
3 revisions
Shieldon\Psr7\Uri
Return the string representation as a URI reference.
-
return
string
Example:
$uri = new Uri('http://example.com:8888/demo/#section-1');
echo $uri;
// Outputs: http://example.com:8888/demo/#section-1
composer require shieldon/psr-http
Shieldon PSR HTTP implementation written by Terry L. from Taiwan.