Utils
in package
Table of Contents
Methods
- getLastPartPath() : string
- Extracts and returns last part of a given path with a trailing slash.
Methods
getLastPartPath()
Extracts and returns last part of a given path with a trailing slash.
public
static getLastPartPath(string $path) : string
Parameters
- $path : string
-
the directory path to process
Return values
string —the last portion of the path, formatted with a trailing slash