class Path (View source)

File system path utility class

Methods

static string
cleanup(string $path)

No description

static boolean
isAbsolute(string $path)

Indicates if the given path is an absolute path

static 
getRelative(string $from, string $to)

Get the relative path from a path to another

Details

static string cleanup(string $path)

Parameters

string $path

Return Value

string

static boolean isAbsolute(string $path)

Indicates if the given path is an absolute path

Parameters

string $path

Return Value

boolean

static getRelative(string $from, string $to)

Get the relative path from a path to another

Parameters

string $from Absolute directory path
string $to Absolute directory path @relurn Relative path from @param $from to @param $to