Easy Tutorial
❮ Func Math Max Php Imagecolordeallocate ❯

PHP basename() Function



Definition and Usage

The basename() function returns the filename part of a path.

Syntax

Parameter Description
path Required. Specifies the path to check.
suffix Optional. Specifies the file extension. If the file has an extension, this extension will not be shown.

Example

The above code will output:

❮ Func Math Max Php Imagecolordeallocate ❯