Pagefile::basename()

Returns the basename of this Pagefile (name and extension, without disk path).

Usage

// basic usage
$string = $pagefile->basename();

// usage with all arguments
$string = $pagefile->basename(bool $ext = true);

Arguments

NameType(s)Description
$ext (optional)bool

Specify false to exclude the extension Default:true

Return value

string


Pagefile methods and properties

API reference based on ProcessWire core version 3.0.251