$file->extension()

Returns the file extension

  • return (string)

Example

<?= $page->file()->extension(); ?>

Is something missing or incorrect? Edit this page on Github…