Leaf PHP

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
string

dirname()

Return the parent directory of the path

public dirname() : string
Return values
string

extension()

Return the extension of the path

public extension() : string
Return values
string

join()

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
string

normalize()

Fix the path to use the correct directory separator

public normalize() : string
Return values
string

        
On this page

Search results