Home >Backend Development >PHP Tutorial >PHP mkdir() definition and usage
Usage:
mkdir(path,mode,recursive,context)
Parameter Description
path required. Specifies the name of the directory to be created.
mode required. Specify permissions. The default is 0777.
recursive Required. Specifies whether to set recursive mode.
context required. Specifies the environment for a file handle. Context is a set of options that modify the behavior of the stream.
mkdir() attempts to create a new directory specified by path.
The default mode is 0777, which means the greatest possible access.
mkdir("something");
?>
For more articles related to the definition and usage of PHP mkdir(), please pay attention to the PHP Chinese website!