umask()
umask - Changes the current umask
Syntax
int umask (
int $mask)
Arguments
Description
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.
Version
PHP 4, 5
Return value
umask() without arguments simply returns the current umask otherwise the old umask is returned.