umask
umask
(PHP 4, PHP 5, PHP 7)
umask — Changes the current umask
Description
int umask ([ int $mask ] )
umask() sets PHP's umask to mask
& 0777 and returns the old umask. When PHP is being used as a server module, the umask is restored when each request is finished.
Parameters
-
mask
-
The new umask.