← All docs

chown()

Changes file owner.

chown()

function chown(string $filename, string $user): bool

Changes file owner.

Parameters:

  • $filename (string)
  • $user (string)

Returns: bool

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

Internals

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