PHP umask() Function

PHP umask Function


Define :

In this tutorial we have to learned about PHP touch() Function.The touch() Function inbuilt function in php.This function is used to changes the file permission for files. The umask function without arguments simply returns the current umask otherwise the old umask is returned.

Syntax of umask function :
   umask(mask)

Parameters in umask function :

Parameter Description
mask It specifies the new permission.

Given below example shows the usage of PHP umask() Function :

Output : 0