private getEndPiece ( string $fullPath ) : string | ||
$fullPath | string | |
Résultat | string |
private function getEndPiece(string $fullPath) : string
{
$trimmedPath = \trim($fullPath . '/');
$arr = \explode('/', $trimmedPath);
return \array_pop($arr);
}