|
Uri\WhatWg\Url::withPasswordModify the password component Description
public static Uri\WhatWg\Url::withPassword(#[\SensitiveParameter]stringnull
$password)Creates a new URL and modifies its password 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::withPassword basic example The above example will output: pass See Also
|