PHP 클래스 Webmozart\PathUtil\Url

The methods in this class are able to deal with URLs.
부터: 2.3
저자: Bernhard Schussek ([email protected])
저자: Claudio Zizza ([email protected])
파일 보기 프로젝트 열기: webmozart/path-util 1 사용 예제들

공개 메소드들

메소드 설명
makeRelative ( string $url, string $baseUrl ) : string Turns a URL into a relative path.

비공개 메소드들

메소드 설명
split ( string $url ) : string[] Splits a URL into its host and the path.

메소드 상세

makeRelative() 공개 정적인 메소드

The result is a canonical path. This class is using functionality of Path class.
또한 보기: Path
public static makeRelative ( string $url, string $baseUrl ) : string
$url string A URL to make relative.
$baseUrl string A base URL.
리턴 string