Mecha CMS

Path::short()

Convert full path into relative path.

2.6.0 Static

Path::short(string $value, $ground = true);

Example:

$A = Path::short('.\srv\http\foo\bar\baz');

Result:

$A = '\foo\bar\baz';