Rundiz\Image

FileSystem
in package

File system class.

Tags
since
3.1.0

Table of Contents

Methods

getFileExtension()  : string
Get file extension only.
getFileRealpath()  : string
Get file real path of the parameter `$filename`.

Methods

getFileExtension()

Get file extension only.

public getFileExtension(string $filename) : string

It will be also replace jpeg to jpg.

Parameters
$filename : string

File name or the string that contain extension

Return values
string

Return file extension only without dot.

getFileRealpath()

Get file real path of the parameter `$filename`.

public getFileRealpath(string $filename) : string

In case that the directory that is parent of file name does not exists, you have to create it before calling this.

Parameters
$filename : string

File path relative or real path.

Return values
string

Return real path to file.


        
On this page

Search results