f::extension($file, $extension = false)

Gets the extension of a file

  • $file (string)
    The filename or path
  • $extension (string)
    Set an optional extension to overwrite the current one
  • return (string)

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