|
Uri\WhatWg\Url::withPortModify the port component Description
public static Uri\WhatWg\Url::withPort(intnull
$port)Creates a new URL and modifies its port component. Parameters
Return ValuesThe modified Uri\WhatWg\Url instance. Errors/ExceptionsIf the resulting URL is invalid, a Uri\WhatWg\InvalidUrlException is thrown. ExamplesExample #1 Uri\WhatWg\Url::withPort basic example The above example will output: NULL int(8443) See Also
|