Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
mkdir("/path/to/my/dir", 0700);
0777の0は必要ですか?
はい。先行ゼロは、数値を8進数として解釈します。それがないと、10進数として解釈されます。
var_dump(0700); // int(448) var_dump(700); // int(700)
先頭のゼロは8進数の値を示します。chmodのドキュメントも参照してください。
はい。8進数のリテラルです