The PHP system mkdir function is used to create a new directory. It takes two parameters, the first one is the path of the directory you want to create and the second one is the permissions (mode) for the directory (optional).
Example 1: Create directory 'uploads' in the current directory with default permissions.
Example 2: Create directory 'test' in the current directory with permissions 0777.
Example 3: Create nested directories with permissions 0755.
This function is a built-in PHP function and is therefore part of the core PHP library. No external package or library is required to use this function.
PHP System::mkdir - 30 examples found. These are the top rated real world PHP examples of System::mkdir extracted from open source projects. You can rate examples to help us improve the quality of examples.