PathParts final class
Minn\Mail\PathParts · public/minn/src/Minn/Mail/PathParts.php · 22 lines
A path's parts the way a mailer names attachments, safe for multibyte names: the directory ('' when there is none), the last segment, its extension (after the last dot, so ".hidden" is all extension) and the name before it. Either slash separates; trailing ones are ignored.
Public
| static | of(string $path): array# | The path's four parts. @return array{dirname: string, basename: string, extension: string, filename: string} |
Nothing matches.