SproutCMS

This is the code documentation for the SproutCMS project

function getExt()

Gets the (final) extension from a file name, in lowercase

Usage

string File::getExt ( string $filename );

Arguments

  1. string $filename
    Full filename, e.g. 'image.large.jpg', '/path/to/image.png'

Return value

  • string
    Extension, excluding leading dot, e.g. 'jpg', 'png'