← All docs

umask()

Changes the current umask.

umask()

function umask(int $mask = null): int

Changes the current umask.

Parameters:

  • $mask (int), default null, optional

Returns: int

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

Internals

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