$port
Return an instance with the specified port.
int|null
*
static
Example:
echo $uri->getPort(); // Outputs: 8888 $uri = $uri->withPort(443); echo $uri->getPort(); // Outputs: 443 $uri = $uri->withPort(null); echo $uri->getPort(); // Outputs:
There was an error while loading. Please reload this page.