|
Uri\WhatWg\Url::resolveResolve a URL with the current object as the base URL 説明
public static Uri\WhatWg\Url::resolve(string
$uri, array &$softErrors = null)Resolves a valid URL string - which may potentially be a relative-URL string - with the current object as the base URL. パラメータ
戻り値A new Uri\WhatWg\Url instance. エラー / 例外If the resulting URL is invalid, a Uri\WhatWg\InvalidUrlException is thrown. 例例1 Uri\WhatWg\Url::resolve basic example 上の例の出力は以下となります。 https://example.com/foo 参考
|