← All docs

is_file()

Tells whether the filename is a regular file.

is_file()

function is_file(string $filename): bool

Tells whether the filename is a regular file.

Parameters:

  • $filename (string)

Returns: bool

Availability

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

Internals

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