Home >Backend Development >PHP Tutorial >Problems with mkdir creating multi-level directories

Problems with mkdir creating multi-level directories

WBOY
WBOYOriginal
2016-07-29 09:14:231127browse
mkdir(path,mode,recursive,context)
rrree
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.
Multi-level directories will be automatically created only when the third parameter is set to true

The above has introduced the problem of creating multi-level directories with mkdir, including aspects of it. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:PHP shuffle functionNext article:PHP shuffle function