Bkwld\Croppa\URL::toPath PHP 메소드

toPath() 공개 메소드

Extract the path from a URL and remove it's leading slash
public toPath ( string $url ) : string
$url string
리턴 string path
    public function toPath($url)
    {
        return ltrim(parse_url($url, PHP_URL_PATH), '/');
    }