resolve() публичный статический Метод

Resolves relative URLs.
public static resolve ( string $url, string $base ) : string
$url string URL to resolve.
$base string URL of the page from which URLs were extracted.
Результат string Resolved URL.
Пример #1
0
 /**
  *
  */
 public function testResolveRelative()
 {
     $this->assertEquals('http://test.com/b', Url::resolve('b', 'http://test.com/a'));
     $this->assertEquals('http://test.com/a/d/f', Url::resolve('../d/./e/../f', 'http://test.com/a/b/c'));
 }