What is the function in PHP used to create a new folder/directory?

To create a new folder/directory in PHP, you can use the `mkdir()` function. This function takes two parameters: the directory path you want to create and optional permissions for the new directory. Make sure to specify the correct path where you want to create the new folder.

<?php
$directory = "new_folder";
mkdir($directory);
?>