-
Notifications
You must be signed in to change notification settings - Fork 1
Uri: withHost Example
Terry L edited this page Jun 18, 2020
·
3 revisions
-
param
string
host*
The hostname to use with the new instance. -
return
static
Example:
echo $uri->getHost();
// Outputs: example.com
$url = $uri->withHost('terryl.in');
echo $uri->getHost();
// Outputs: terryl.in
composer require shieldon/psr-http
Shieldon PSR HTTP implementation written by Terry L. from Taiwan.