← All docs

pathinfo()

Returns information about a file path.

pathinfo()

function pathinfo(string $path, int $flags = 15): array

Returns information about a file path.

Parameters:

  • $path (string)
  • $flags (int), default 15, optional

Returns: array

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

Internals

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