The `mkdir` function in PHP is used to create a new directory on the file system. It takes in two parameters: the path of the directory to be created and the optional permissions mode. If successful, it returns `true`, otherwise `false`. This function is useful when you need to dynamically create directories for organizing and managing files on the server.
PHP FileSystem::mkdir - 18 examples found. These are the top rated real world PHP examples of FileSystem::mkdir extracted from open source projects. You can rate examples to help us improve the quality of examples.