← All docs

filetype()

Gets file type.

filetype()

function filetype(string $filename): mixed

Gets file type.

Parameters:

  • $filename (string)

Returns: mixed

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how filetype is implemented in the compiler, see the internals page.