← All docs

scandir()

Lists files and directories inside the specified path.

scandir()

function scandir(string $directory): array

Lists files and directories inside the specified path.

Parameters:

  • $directory (string)

Returns: array

Availability

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

Internals

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