Path
in package
Table of Contents
Properties
- $pathToParse : string
Methods
- __construct() : mixed
- basename() : string
- Return the last part of the path
- dirname() : string
- Return the parent directory of the path
- extension() : string
- Return the extension of the path
- join() : string
- Join multiple path parts using the correct directory separator
- normalize() : string
- Fix the path to use the correct directory separator
Properties
$pathToParse
public
string
$pathToParse
Methods
__construct()
public
__construct(mixed $path) : mixed
Parameters
- $path : mixed
basename()
Return the last part of the path
public
basename() : string
Return values
stringdirname()
Return the parent directory of the path
public
dirname() : string
Return values
stringextension()
Return the extension of the path
public
extension() : string
Return values
stringjoin()
Join multiple path parts using the correct directory separator
public
join(array<string|int, mixed> ...$paths) : string
Parameters
- $paths : array<string|int, mixed>
Return values
stringnormalize()
Fix the path to use the correct directory separator
public
normalize() : string