protected extractRelativePathFrom ( string $path ) : string | ||
$path | string | The path from which to extract the relative path, *(not null not empty). |
리턴 | string | The relative path for the provided path, not null. |
protected function extractRelativePathFrom($path)
{
$pos = strrpos($path, '/');
if ($pos !== false) {
return substr($path, 0, $pos + 1);
}
return '';
}